I have a build in Jenkins triggered by Gerrit I would like to trigger on all branches except master
. What regex should I use for this?
Using a negative lookahead worked for me:
^(?!.*master).*$
Should trigger on everything except master. Kudos to this questions answers.