在詹金斯中正确配置多分支管道 [英] Proper configuring of Multibranch Pipeline in Jenkins
问题描述
如何正确时GIT中被选作分支源配置多枝管道在詹金斯?在分支索引日志中检查的每个分支都会得到一个不符合条件".
How do I properly configure a Multibranch Pipeline in Jenkins when Git is selected as branch source? I get a "Does not meet criteria" for every branch that is checked in the branch indexing log.
推荐答案
如果您的Git分支包含Jenkinsfile,则此多分支管道作业将创建管道作业.
This Multibranch Pipeline job will create a pipeline job if your Git branch contains a Jenkinsfile.
此Jenkins文件描述了如何构建当前分支(Jenkins Groovy DSL).
This Jenkinsfile describe how to build the current branch (Jenkins Groovy DSL).
如果您的分支不包含Jenkinsfile,则您将收到此不符合条件"消息.
If your branch doesn't contain a Jenkinsfile, then you will get this "does not meet criteria" message.
有关Multibranch管道的更多信息,请此处.
More information about the Multibranch pipeline here.
这篇关于在詹金斯中正确配置多分支管道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!