Reputation: 2649
I have a multi-branch pipeline that has been configured to use branch auto-discovery. However I don't want Jenkins to automatically start a pipeline job when it discovers a new branch. I instead want the pipeline job to be started by another means (e.g. using a timer or via a REST API call).
Is this possible?
Upvotes: 2
Views: 2913
Reputation: 4023
You might revert to explicitly naming the branches you want to include
with auto-discovery using Filter by name (with wildcards)
.
The documentation states: Space-separated list of name patterns to consider. You may use * as a wildcard; for example: master release*
So, adding any new branch to the list of included branches will ensure any changes after such addition will trigger processing as usual.
Any new branch will not be processed until it is explicitly included with the list.
Upvotes: -1
Reputation: 37630
Yes, add the Suppress automatic SCM triggering
property in the branch sources of your multibranch project.
Upvotes: 6