简体   繁体   English

多分支 Jenkins 管道停止扫描所有分支中的 Jenkins 文件

[英]Multibranch Jenkins pipeline stop scanning for Jenkins file in all branches

I have set up a multibranch Jenkins pipeline with Gitlab.我已经用 Gitlab 建立了一个多分支的 Jenkins 管道。 There are around 250+ branches in the Gitlab repository. Gitlab 存储库中有大约 250 多个分支。 The scanning part in the multibranch Jenkins pipeline is taking too much time.多分支 Jenkins 管道中的扫描部分花费了太多时间。 Since as of now I am only concerned with the dev and master branches.因为到目前为止,我只关心 dev 和 master 分支。 Is there any way we can limit the scanning to only specific branches to improve the runtime?有什么方法可以将扫描限制为仅特定分支以改善运行时?

Jenkins can filter branches in a multibranch pipeline by name using a wildcard or regular expression. Jenkins 可以使用通配符或正则表达式按名称过滤多分支管道中的分支。

Here find the screenshot:在这里找到截图:

在此处输入图片说明

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

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