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.
Asked: 2023-06-24 16:04:21 +0000
Seen: 13 times
Last updated: Jun 24 '23