Details
-
Improvement
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
Description
The Poll SCM trigger has two purposes:
1. Setting a cadence for polling SCM
2. Declaring that post commit hooks should be ignored
Currently if you want to ignore post commit hooks you are supposed to configure the trigger like so:
Now the issue here is that we are displaying a warning for a desired configuration. This leads users to think that they are doing something wrong.
As a consequence of this, we have had developers of other plugins add their own trigger implementations to control push trigger ignore behaviour (see GitHub plugin for an example)
What we really want is that the field validation should state that empty polling is OK when ignoring triggers:
But retain the field validation when either not ignoring hooks or ignoring hooks but invalid spec
Attachments
Issue Links
- links to
Code changed in jenkins
User: Stephen Connolly
Path:
core/src/main/java/hudson/triggers/SCMTrigger.java
core/src/main/resources/hudson/triggers/SCMTrigger/config.jelly
http://jenkins-ci.org/commit/jenkins/403b1ef6248e4c84fc6a6c19f9906aaf1cb9b461
Log:
[FIXED JENKINS-42194] Do not display a warning when ignoring post-commit hooks
(cherry picked from commit d0d9216f4fba8337f853aadf9853fb8dcc5cb1cf)