How to exclude jenkins files from scm polling on a jenkins job

前端 未结 1 644
离开以前
离开以前 2021-01-21 03:38

I\'m working with declarative pipeline syntax. My jenkins files are stored on a git hub repository, separated from the code to build, so I set up the jenkins job to get the pipe

1条回答
  •  孤独总比滥情好
    2021-01-21 04:10

    Possible workarounds:

    • If the webhook is not configured at GitHub org level, disable webhook for the repository where your Jenkinsfile is located

      OR

    • In the Jenkins job configuration, under Pipeline > Additional Behaviours > Add, select Polling ignores commits in certain paths. Then, in the Excluded Regions textbox, specify the Jenkinsfile path or .* to exclude everything.

    0 讨论(0)
提交回复
热议问题