简体   繁体   English

svn:external中带有jenkinsfile的多分支管道

[英]Multibranch pipeline with jenkinsfile in svn:external

I have set up a multibranch pipeline job for a repository in SVN. 我已经为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. 由于我要在所有分支中保持jenkinsfile相同,因此它们并不是真正位于分支中,而是位于不同的位置,并且只能通过svn:externals引用。

Unfortunately the multibranch pipeline does not seem to follow these references and doesn't find the jenkinsfiles (the paths are correctly set): 不幸的是,多分支管道似乎没有遵循这些参考,也没有找到jenkinsfiles(正确设置了路径):

Checking candidate branch /branches/aaa/bbb/ccc@HEAD
      ‘ddd\eee\fff\jenkinsfile' not found
Does not meet criteria

Is there any way to tell Jenkins and the multibranch-pipeline plugin setup to also follow svn:externals when looking for the jenkinsfiles? 寻找jenkins文件时,有什么方法可以告诉Jenkins和多分支管道插件设置也遵循svn:externals吗?

By default, Jenkins is trying to get the Jenkinsfile with a lightweight checkout which does not consider svn:externals. 默认情况下,Jenkins尝试使用轻量级签出(不考虑svn:externals)获取Jenkinsfile。

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" 可以(仅通常)禁用此行为,请参阅https://wiki.jenkins.io/display/JENKINS/Subversion+Plugin ,“多分支管道项目上Subversion的轻量级检查功能和外部支持”一章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM