Status: Closed (View Workflow)
With git plugin, when we request Push notification url from git post-receive hooks, all jobs are notified. That's great!
But, in some cases (e.g. nightly builds like integration testing, Sonar, etc.), we may want to ignore this notification, even if there are new commits.
The simpliest would be to add a "Ignore Push notification" checkbox for this special case.
- depends on
JENKINS-6846 Poll SCM with post-commit hook or by cron-definition
Here are some alternatives to adding an "ignore Push notification" option:
- Add a "Build Trigger" that if selected will let a build be kicked off by the git plugin on a push notification. (This is the inverse of the above, which I think is more obvious). Without this "Build Trigger" then the push will be ignored.
- Only kick off a build if the polling is more frequent than a certain threshold (such as 30 minutes).
JENKINS-6846 for the core-side fix. So this still needs to be implemented on the git side.
I've found an option which is named "Don't trigger a build on commit notifications". This option can be added via "Additional Behaviours".
Is this option what you want?
After almost a year without response to the question "does the existing option meet your need", I'm closing this as resolved. Ignore commit notification is available as a check box.
Note: workaround is to start the build each night instead of polling the repo, but in this case we start it even nothing is new.