简体   繁体   中英

How to skip Jenkins job triggered by gerrit patchset based on commit msg

Is it possible to skip jenkins job if there is a specific word in the COMMIT_MSG? I have configured my gerrit waiting for the following things (see below) and I would like to skip the flow in case I push something like "jenkinsLocal" in the commit msg.

git commit -m "jenkinslocal so skip this build" git push origin HEAD:refs/for/master

在此处输入图片说明

当作业由补丁集创建触发时,您可以通过检查$ GERRIT_CHANGE_SUBJECT变量开始,并且在这种情况下,请停止该过程。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM