Branch: refs/heads/master
  Home:   https://github.com/jenkinsci/jenkins
  Commit: 75745f00428226d648ccbee899f2970adf51c899
      
https://github.com/jenkinsci/jenkins/commit/75745f00428226d648ccbee899f2970adf51c899
  Author: Andrew Bayer <[email protected]>
  Date:   2016-09-09 (Fri, 09 Sep 2016)

  Changed paths:
    M core/src/main/java/hudson/triggers/SCMTrigger.java
    M core/src/main/resources/hudson/triggers/SCMTrigger/config.jelly

  Log Message:
  -----------
  [FIXED JENKINS-37731] Change symbol and constructor for SCMTrigger. (#2526)

* [FIXED JENKINS-37731] Change symbol and constructor for SCMTrigger.

Using "scm" as the @Symbol led to collisions with the "scm" global
variable in Pipeline, so that had to go. Changed it to "pollScm". Also
moved the @DataBoundConstructor to the single-parameter constructor,
deprecated the two-parameter constructor, created a @DataBoundSetter
for ignorePostCommitHooks, and added a getter for "scmpoll_spec" to
fix snippet generator and general syntactic goodness.

So now, with this, it's possible to do:

properties([
  pipelineTriggers([
    pollScm('@daily')
  ])
])

Tada.

Tests for the snippet generator and job property stuff will be landing
in a separate PR for workflow-multibranch.

* Review comments.

* Updating @since to 2.22


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to