Jenkins poll-scm有一个选项“忽略提交后的挂钩”。 如何将该行为编码为脚本化管道脚本?
有关该选项的文档非常安静:https://jenkins.io/doc/book/pipeline/syntax/#triggers
基本pollscm声明:
properties([
pipelineTriggers(pollSCM('H */4 * * 1-5')]),
])
答案 0 :(得分:0)
哦,愚蠢的你,正确的语法如下:
SCMTrigger(scmpoll_spec: String, ignorePostCommitHooks?: boolean)
因此正确的用法是:
properties([
pipelineTriggers(pollSCM(scmpoll_spec: 'H */4 * * 1-5', ignorePostCommitHooks: true)]),
])