-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
p4-plugin 1.7.5
Jenkins 2.60.3 (on Ubuntu Trusty)
Current behavior (1.7.5):
If the Jenkinsfile is deleted branch is still considered part of multiubranch project.
If all files including Jenkinsfile on branch is deleted then on next scan branch is removed from multibranch project.
Requested behavior:
If the Jenkinsfile is deleted then on next scan branch is removed from multibranch project.
Reproduction Steps:
- Create multibranch project that scan //depot/project1/...
- Add //depot/project1/main/Jenkinsfile and //depot/project1/main/f1.
- Add //depot/project1/branch1/Jenkinsfile and //depot/project1/branch1/f1.
- Click 'Scan Multibranch Pipeline Now'. Two branches are found.
- 'p4 delete //depot/project1/branch1/Jenkinsfile' and submit.
- Click 'Scan Multibranch Pipeline Now'.
- Branch1 is not removed from project and build of Branch1 fails with
...Jenkinsfile not found
Finished: FAILURE