詹金斯·格里特(Jenkins Gerrit)在除master之外的所有分支上触发

问题描述:

我有一个由Gerrit触发的Jenkins构建,我想在除master之外的所有分支上触发.我应该为此使用什么正则表达式?

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?

使用否定前瞻为我工作:

^(?!.*master).*$

应在所有主文件上触发. 此问题的答案.

Should trigger on everything except master. Kudos to this questions answers.