-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Major
-
Component/s: branch-api-plugin, workflow-multibranch-plugin
-
Environment:Jenkins:2.60.1
branch-api:2.0.10
scm-api:2.1.1
workflow-multibranch:2.16
If I specify several Project Recognizers in a GitHub Organization Project:
- Jenkinsfile_1
- Jenkinsfile_2
And I have a GitHub repo with different branches, each branch has a different recognizer:
- master has a Jenkinsfile
- test/branch1 has a Jenkinsfile_1
- test/branch2 has a Jenkinsfile_2
Branch Indexing only recognize test/branch1, the first recognizer that it can find matching criteria for and stops there:
Started [Fri Jul 14 18:15:54 AEST 2017] Starting organization scan... [Fri Jul 14 18:15:54 AEST 2017] Updating actions... Looking up details of support-team... Organization URL: https://my.github.com/support-team [Fri Jul 14 18:15:55 AEST 2017] Consulting GitHub Organization 18:15:55 Connecting to https://my.github.com/api/v3 using support-team/****** (support-team-up) 18:15:56 Looking up repositories of myself support-team Looking up support-team/ZD-51119 Getting remote pull requests... 0 pull requests were processed Getting remote branches... Checking branch master ‘Jenkinsfile_1’ not found Does not meet criteria Checking branch test/branch1 ‘Jenkinsfile_1’ found Met criteria 0 branches were processed (query completed) Done examining support-team/ZD-51119 Ignoring ZD46824-code Ignoring ZD46824-libs [Fri Jul 14 18:16:01 AEST 2017] Finished organization scan. Scan took 7.3 sec Finished: SUCCESS
I add a new branch in GitHub, now Branch Indexing check on my other branches but does not recognize test/branch2
Branch indexing [Fri Jul 14 18:20:37 AEST 2017] Starting branch indexing... 18:20:38 Connecting to https://my.github.com/api/v3 using support-team/****** (support-team-up) 18:20:39 Connecting to https://my.github.com/api/v3 using support-team/****** (support-team-up) Looking up support-team/ZD-51119 Getting remote pull requests... 0 pull requests were processed Getting remote branches... Checking branch master ‘Jenkinsfile_1’ not found Does not meet criteria Checking branch test/branch1 ‘Jenkinsfile_1’ found Met criteria No changes detected: test/branch1 (still at 57cdca9570437e822714f6ee12d32881fa22d65c) Checking branch test/branch2 ‘Jenkinsfile_1’ not found Does not meet criteria Checking branch test/branch3 ‘Jenkinsfile_1’ not found Does not meet criteria 1 branches were processed Done examining support-team/ZD-51119 [Fri Jul 14 18:20:43 AEST 2017] Finished branch indexing. Indexing took 5.9 sec Finished: SUCCESS
- links to