[英]Jenkins Multibranch Job configuration as a pipeline Job
I have mutibranch job in jenkins.我在 jenkins 有多分支工作。 Is there any way i can do the multibranch job configurations in a Jenkinsfile?有什么办法可以在 Jenkinsfile 中进行多分支作业配置? like branchsource, behaviours etc in multibranch job i want to store as a code像我想存储为代码的多分支作业中的分支源、行为等
Short answer is NO.简短的回答是否定的。
But if you still want it, you can store job xml configuration in Git, and then update job through Jenkins API using a local script or even another Jenkins job. But if you still want it, you can store job xml configuration in Git, and then update job through Jenkins API using a local script or even another Jenkins job. Don't recommend though.不过不推荐。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.