Reputation: 5037
After experiencing many failures in Jenkins Git plugin native polling, and reading Kohsuke blogpost, I've integrated git hook in our Stash server that triggers any Jenkins job that uses git repository and has polling configured.
Problem is:
What can I do?
Upvotes: 2
Views: 3101
Reputation: 5174
With newer version of Jenkins, you can disable jobs from listening to post-commit hooks:
Open job configuration, got to Git configuration.
Under Additional Behaviours
, click add
and select Don't trigger a build on commit notifications
.
Now your job only starts when actual polling for changes occurs.
If you use GitPlugin Version >= 2.0.3, you can also check "Ignore post-commit hooks" under the SCM Trigger configuration.
Upvotes: 3