简体   繁体   中英

Jenkins Scan Multibranch Pipeline stopped detecting develop branch

I am using an organization folder in Jenkins to discover all repositories that contain a 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.

When I rescan the project the log shows how it examines the branch but says nothing about finding or not finding the 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...

Obvious check, but still, worth a check :

  • Typo in Jenkinsfile name in dev branch
    • Try a pull request from master (that seems to works) to dev branch
  • Scan filter in Folder setup updated ?
  • JenkinsFile syntax could be wrong ? (not sure if it can impact, but you might have a look if something changed in dev lately)
  • dev branch visibility constrain ?

Hope this helps Regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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