Can I use Jenkins CLI or some groovy scripts to create a new job

自作多情 提交于 2019-12-12 02:58:00

问题


Can I use Jenkins CLI or some groovy scripts to create a new job? This job can be copied from the previous one but the svn repo isn't the same.


回答1:


There is a job-dsl plugin which allows you to create new jobs with groovy script




回答2:


Yes of course, see you can use groovy for this



来源:https://stackoverflow.com/questions/16975266/can-i-use-jenkins-cli-or-some-groovy-scripts-to-create-a-new-job

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!