svn:external中带有jenkinsfile的多分支管道 [英] Multibranch pipeline with jenkinsfile in svn:external
问题描述
我已经为SVN中的存储库设置了多分支管道作业.由于我要在所有分支中保持jenkinsfile相同,因此它们并不是真正位于分支中,而是位于不同的位置,只能通过svn:externals引用.
I have set up a multibranch pipeline job for a repository in SVN. Since I want to keep the jenkinsfiles the same in all branches, they are not really located in the branches, but in a different location and only referenced via svn:externals.
不幸的是,多分支管道似乎没有遵循这些参考,也没有找到jenkinsfiles(正确设置了路径):
Unfortunately the multibranch pipeline does not seem to follow these references and doesn't find the jenkinsfiles (the paths are correctly set):
Checking candidate branch /branches/aaa/bbb/ccc@HEAD
‘ddd\eee\fff\jenkinsfile' not found
Does not meet criteria
在寻找jenkins文件时,有什么方法可以告诉Jenkins和多分支管道插件设置也遵循svn:externals吗?
Is there any way to tell Jenkins and the multibranch-pipeline plugin setup to also follow svn:externals when looking for the jenkinsfiles?
推荐答案
默认情况下,詹金斯(Jenkins)尝试使用不考虑svn:externals的轻量级签出获取Jenkinsfile.
By default, Jenkins is trying to get the Jenkinsfile with a lightweight checkout which does not consider svn:externals.
可以(仅通常)停用此行为,请参见 https://wiki. jenkins.io/display/JENKINS/Subversion+Plugin ,用于多分支管道项目的Subversion的轻量级签出功能和外部支持"一章
This behavior can be (only generally) deactivated, see https://wiki.jenkins.io/display/JENKINS/Subversion+Plugin, chapter "lightweight checkout capability for Subversion on Multibranch Pipeline projects and Externals support"
这篇关于svn:external中带有jenkinsfile的多分支管道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!