You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-42194] SCMTrigger should not give a warning when used to suppress post-commit hooks #21890
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
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
Code changed in jenkins
User: Stephen Connolly
Path:
core/src/main/java/hudson/triggers/SCMTrigger.java
core/src/main/resources/hudson/triggers/Messages.properties
core/src/main/resources/hudson/triggers/SCMTrigger/config.jelly
http://jenkins-ci.org/commit/jenkins/d0d9216f4fba8337f853aadf9853fb8dcc5cb1cf
Log:
[FIXED JENKINS-42194] Do not display a warning when ignoring post-commit hooks
Code changed in jenkins
User: Stephen Connolly
Path:
core/src/main/java/hudson/triggers/SCMTrigger.java
core/src/main/resources/hudson/triggers/Messages.properties
core/src/main/resources/hudson/triggers/SCMTrigger/config.jelly http://jenkins-ci.org/commit/jenkins/d0d9216f4fba8337f853aadf9853fb8dcc5cb1cf
Log: [FIXED JENKINS-42194] Do not display a warning when ignoring post-commit hooks
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)
Activity
jenkins-infra-bot commentedon Feb 20, 2017
Remote link associated with this issue:
jenkins-infra-bot commentedon Feb 20, 2017
Raw content of original comment:
Thinking on this more, an empty schedules should not be a warning for Poll SCM ever, we should explain that post commit hooks may contribute or not
jenkins-infra-bot commentedon Feb 26, 2017
Raw content of original comment:
Code changed in jenkins
User: Stephen Connolly
Path:
core/src/main/java/hudson/triggers/SCMTrigger.java
core/src/main/resources/hudson/triggers/Messages.properties
core/src/main/resources/hudson/triggers/SCMTrigger/config.jelly
http://jenkins-ci.org/commit/jenkins/d0d9216f4fba8337f853aadf9853fb8dcc5cb1cf
Log:
[FIXED JENKINS-42194] Do not display a warning when ignoring post-commit hooks
jenkins-infra-bot commentedon Apr 14, 2017
Raw content of original comment:
Code changed in jenkins
User: Stephen Connolly
Path:
core/src/main/java/hudson/triggers/SCMTrigger.java
core/src/main/resources/hudson/triggers/Messages.properties
http://jenkins-ci.org/commit/jenkins/7f42b5bbd31376fa52c1b3aeab15a3c3d3f9f238
Log:
JENKINS-42194Code review reveals valid point, no schedules is not a warning(cherry picked from commit 5f5f880)
jenkins-infra-bot commentedon Apr 14, 2017
Raw content of original comment:
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 d0d9216)