1 | initial version |
You can prevent Jenkins from initiating a pull request build for a particular branch by applying a regular expression match in the branch specifier section of the Jenkins job configuration.
For example, if you want to skip builds for a branch named "skip-build", you can add the following regular expression match:
^(?!skip-build).*$
This regular expression will match all branch names except for "skip-build".
Jenkins will now skip initiating a pull request build for the specified branch.