简体   繁体   English

Jenkins Scan Multibranch Pipeline停止检测开发分支

[英]Jenkins Scan Multibranch Pipeline stopped detecting develop branch

I am using an organization folder in Jenkins to discover all repositories that contain a Jenkinsfile. 我在Jenkins中使用组织文件夹来发现包含Jenkinsfile的所有存储库。

It had been working fine until recently. 直到最近它一直运行良好。 At some point, the develop branch of one of the repositories was removed. 在某个时候,其中一个存储库的开发分支已被删除。 That branch does exist and contains a valid Jenkinsfile. 该分支确实存在并且包含有效的Jenkinsfile。

When I rescan the project the log shows how it examines the branch but says nothing about finding or not finding the Jenkinsfile: 当我重新扫描项目时,日志显示了它如何检查分支,但是对查找或不查找Jenkinsfile一事无成:

Looking up myorg/myrepo for branches
Checking branch develop from myorg/myrepo
Checking branch master from myorg/myrepo
      ‘Jenkinsfile’ found
    Met criteria
...

What could be the problem here? 这可能是什么问题? Any advice about how to troubleshoot this? 关于如何解决此问题的任何建议?

I've tried the usual solutions: delete the branch, create new ones that are detected without any problem, recreate the develop branch... 我尝试了通常的解决方案:删除分支,创建没有任何问题的新检测分支,重新创建develop分支...

Obvious check, but still, worth a check : 显而易见的检查,但仍然值得检查:

  • Typo in Jenkinsfile name in dev branch 开发分支中Jenkinsfilename中的错字
    • Try a pull request from master (that seems to works) to dev branch 尝试从master (似乎有效)向dev分支的拉取请求
  • Scan filter in Folder setup updated ? 文件夹设置中的扫描过滤器已更新?
  • JenkinsFile syntax could be wrong ? JenkinsFile语法可能是错误的? (not sure if it can impact, but you might have a look if something changed in dev lately) (不知道它是否会产生影响,但是您可以看看最近开发中是否发生了一些变化)
  • dev branch visibility constrain ? dev分支的可见性受到限制?

Hope this helps Regards 希望这对您有帮助

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

相关问题 Jenkins Multibranch(管道)/分支跟踪 - Jenkins Multibranch (Pipeline) / Branch tracking 在多分支管道中禁用分支并通过扫描事件重新打开 - Branch disabled in multibranch pipeline and reopened with Scan event Jenkins 多分支管道扫描而不执行 - Jenkins multibranch pipeline Scan without execution 如果另一个分支在詹金斯多分支管道中不稳定,则防止分支的建立 - Prevent build of branch if another branch is not stable in jenkins multibranch pipeline 从另一个作业触发Jenkins多分支管道扫描 - Trigger Jenkins Multibranch Pipeline Scan from another job 如何触发对 jenkins 多分支管道的扫描? - How do I trigger a scan for a jenkins multibranch pipeline? Jenkins 扫描多分支管道失败 主机密钥验证失败 - Jenkins Scan Multibranch Pipeline fails Host key verification failed Jenkins 多分支管道 - 创建 PullRequest 时不会从 Bitbucket 触发扫描 - Jenkins Multibranch Pipeline - scan is not triggered from Bitbucket when a PullRequest is created 在 Jenkins 中使用 pollSCM 和 Scan Multibranch Pipeline Triggers 有什么区别? - What is the difference between using the pollSCM and the Scan Multibranch Pipeline Triggers in Jenkins? Jenkins多分支管道具有多个具有相同分支名称的来源 - Jenkins Multibranch Pipeline with multiple sources with the same branch name
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM