[英]Multibranch jenkins - jenkinsfile is on submodule
I have the same problem as in: Jenkins multibranch - how to scan branches where jenkinsfile is placed on a submodule?我有同样的问题: Jenkins multibranch - 如何扫描 jenkinsfile 放置在子模块上的分支?
Note that both repositories are placed on a private gitlab server and they are set as private.请注意,这两个存储库都放置在私有 gitlab 服务器上,并且它们被设置为私有。 However i've no problem in checkout both interdependently on Jenkins.
但是,我在 Jenkins 上相互依赖地结帐时没有问题。
I have my jenkinsfile for a branch placed on a submodule like so:我将 jenkinsfile 用于放置在子模块上的分支,如下所示:
main/
...
submodule/ -> submodule
jenkinsfile
But i'm unable to run a Multibranch pipeline.但我无法运行多分支管道。 The scan cannot detect the jenkinfile:
扫描无法检测到 jenkinfile:
Checking branches...
Checking branch main
‘submodule/jenkinsfile’ not found
Does not meet criteria
Processed 1 branches
I've tried all the options on the following thread: Git submodules not updating in Jenkins build我已经尝试了以下线程上的所有选项: Git submodules not updated in Jenkins build
But none work.但没有一个工作。
Versions:版本:
As anyone figure out the solution to this?有人想出解决方案吗? Thanks
谢谢
I've managed to resolve my issues based on this thread: https://devops.stackexchange.com/questions/9243/is-there-a-way-to-use-a-jenkinsfile-from-a-git-submodule-in-a-multibranch-pipeli我已经设法根据这个线程解决了我的问题: https://devops.stackexchange.com/questions/9243/is-there-a-way-to-use-a-jenkinsfile-from-a-git-submodule -in-a-multibranch-pipeli
i've installed this plugin: https://plugins.jenkins.io/remote-file/ and it solved my issues.我已经安装了这个插件: https://plugins.jenkins.io/remote-file/它解决了我的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.