问题
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