Seems like there is no way to exclude streams from the 'build strategies'. I had originally set up my multibranch pipeline job to build all streams. We now want to exclude some specifically named streams but this doesn't seem to be possible by using a regular expression for a named branch and choosing 'None Strategies Match'. See screenshot.
After adding this to my multibranch config, the stream 'OBSOLETE - int_2.0.2' still shows up as a job and still attempts to run. The multibranch config is setup to discard old items.
A system configured as above should remove the job from list of jobs in the multibranch pipeline.
- duplicates
-
JENKINS-58346 Add exclude filter multibranch option
-
- Closed
-
Hi belowe - Thanks for highlighting this. I'll make sure the developers see this.
The following job exists to solve the general problem -
JENKINS-58346(Add exclude filter multibranch option)The workaround mentioned are:
The protections option should work but I have not tested the inclusionary method with streams. I also think that if you delete the Jenkinsfile in the stream then at minimum it wont build and possibly it wont be added to the pipeline.
You can find more on Perforce protections in:
https://www.perforce.com/manuals/p4sag/Content/P4SAG/protections.set.html