Multibranch pipeline with jenkinsfile in svn:external

邮差的信 提交于 2020-07-23 07:28:59

问题


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.

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

Is there any way to tell Jenkins and the multibranch-pipeline plugin setup to also follow svn:externals when looking for the jenkinsfiles?


回答1:


By default, Jenkins is trying to get the Jenkinsfile with a lightweight checkout which does not consider svn:externals.

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://stackoverflow.com/questions/57897542/multibranch-pipeline-with-jenkinsfile-in-svnexternal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!