ci skip不在詹金斯工作

时间:2016-06-09 00:43:30

标签: jenkins jenkins-plugins jenkins-job-builder

启用ci跳过Jenkins UI并提交git commit -m "testing [ci skip]"提交 - 我可以看到jenkins仍然在构建。你能不能让我知道如何在提交消息中跳过jenkins build with ci skip。谢谢。 enter image description here

2 个答案:

答案 0 :(得分:0)

如果您只在Jenkins中安装了CI Skip并且没有进行任何配置更改,那么您应该知道您需要配置项目的构建环境以启用CI Skip

答案 1 :(得分:0)

詹金斯 GitLabPushTrigger
[ci-skip]

git commit -m"[ci-skip] you comment"

https://github.com/jenkinsci/gitlab-plugin/blob/c27af273327e1660d619a27045f0dd301af68067/src/main/java/com/dabsquared/gitlabjenkins/trigger/handler/push/PushHookTriggerHandlerImpl.java#L32-L35

protected boolean isCiSkip(PushHook hook) {
    List<Commit> commits = hook.getCommits();
    return commits != null && !commits.isEmpty() && commits.get(0).getMessage() != null && commits.get(0).getMessage().contains("[ci-skip]");
}