Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Jenkins 中有一个由 Gerrit 触发的构建,我想在所有分支上触发,除了master. 我应该为此使用什么正则表达式?
master
使用负前瞻对我有用:
^(?!.*master).*$
应该触发除master之外的所有东西。感谢这个问题的答案。
以下对我有用:
^(master.+|(?!master).*)$
这仅排除主控。例如,不是master_joda。
也是基于这些答案。