简体   繁体   English

在多分支管道中禁用分支并通过扫描事件重新打开

[英]Branch disabled in multibranch pipeline and reopened with Scan event

We have one project configured as multibranch pipeline project with branch filtered master and development.我们有一个项目配置为多分支管道项目,具有分支过滤的 master 和 development。 After few hours the master branch is disabled with a strikethrough symbol across its name and build option not available .几个小时后,主分支被禁用,其名称上带有删除线符号,并且构建选项不可用。

When clicked on "Scan Multibranch Pipeline", it enabled the branch and pipeline logs show "Branch ReOpened".当单击“扫描多分支管道”时,它启用了分支和管道日志显示“分支重新打开”。

Initially we assumed it would be because of Option "Exclude branches included in pull request" but enabling "All branches" too is disabling the master branch time and time again.最初我们认为这是因为选项“排除拉取请求中包含的分支”,但启用“所有分支”也会一次又一次地禁用主分支。

Pipeline Logs are not providing any clear indication of whats happening causing it to disable .Please help .管道日志没有提供任何明确的指示导致它被禁用。请帮助。

This looks like a bug to me.这对我来说似乎是一个错误。 First I'll go to http://[jenkins]/log/all to see if there are any interesting logs there, then I would open an issue on https://issues.jenkins.io/secure/Dashboard.jspa首先我会去 http://[jenkins]/log/all 看看那里是否有任何有趣的日志,然后我会在https://issues.jenkins.io/secure/Dashboard.jspa上打开一个问题

Also this issue might be happening after a recent upgrade of jenkins plugins or jenkins itself, I would downgrade everything to try to get my jenkins back to the way it was, then upgrade the plugins one by one or few by few to try to isolate what is causing the issue.此外,在最近升级 jenkins 插件或 jenkins 本身之后可能会发生此问题,我会降级所有内容以尝试让我的 jenkins 恢复原状,然后一个一个或几个升级插件以尝试隔离什么导致问题。

Finally, if you have jobdsl scripts, I would check these scripts to see if there is not a script that when executed is recreating the job and overrides the disabled status最后,如果你有 jobdsl 脚本,我会检查这些脚本,看看是否有脚本在执行时重新创建作业并覆盖禁用状态

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

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