Configure or Create hudson job automatically

前端 未结 7 509
猫巷女王i
猫巷女王i 2020-12-11 14:44

Is there any way to create new Hudson job by one more Hudson job based one previous Jobs?

For example if I need to create new bunch of jobs one by one, Automatically

7条回答
  •  醉梦人生
    2020-12-11 15:29

    You can try the Hudson Remote API for this kind of task (setting up an Hudson project).

    See this tutorial for instance, and remember you can display the help quite easily:

    java -jar hudson-cli.jar -s http://your_Hudson_server/ help
    

    alt text

    So, to copy a job:

    java -jar hudson-cli.jar -s http://your_Hudson_server/ copy-job myjob copy-myjob
    

提交回复
热议问题