Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37219

Option to suppress automatic SCM trigger from Jenkinsfile

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      While JENKINS-32396 allows suppressing launching of builds due to new commits for an individual branch via UI configuration of the multibranch parent, it does not provide a way to control that behavior from the Jenkinsfile. There should be a JobProperty that provides the same behavior.

        Attachments

          Issue Links

            Activity

            Show
            abayer Andrew Bayer added a comment - PR up at https://github.com/jenkinsci/workflow-multibranch-plugin/pull/26
            Hide
            abayer Andrew Bayer added a comment -

            New PR - https://github.com/jenkinsci/branch-api-plugin/pull/48 - moving this up to branch-api and allowing for both disabling branch indexing triggers and enabling them when they're otherwise suppressed by branch or folder properties.

            Show
            abayer Andrew Bayer added a comment - New PR - https://github.com/jenkinsci/branch-api-plugin/pull/48 - moving this up to branch-api and allowing for both disabling branch indexing triggers and enabling them when they're otherwise suppressed by branch or folder properties.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            pom.xml
            src/test/java/org/jenkinsci/plugins/workflow/multibranch/JobPropertyStepTest.java
            http://jenkins-ci.org/commit/workflow-multibranch-plugin/91acfa5a571d1be69528ae6b59f618d2932fbec1
            Log:
            JENKINS-37219 Test for new overrideIndexTriggers job property.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pom.xml src/test/java/org/jenkinsci/plugins/workflow/multibranch/JobPropertyStepTest.java http://jenkins-ci.org/commit/workflow-multibranch-plugin/91acfa5a571d1be69528ae6b59f618d2932fbec1 Log: JENKINS-37219 Test for new overrideIndexTriggers job property.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            pom.xml
            src/test/java/org/jenkinsci/plugins/workflow/multibranch/JobPropertyStepTest.java
            http://jenkins-ci.org/commit/workflow-multibranch-plugin/80120a5bbfb7d41d23a224ea28d5b9ace06b4b73
            Log:
            Merge pull request #27 from abayer/jenkins-37219-test

            JENKINS-37219 Test for new overrideIndexTriggers job property.

            Compare: https://github.com/jenkinsci/workflow-multibranch-plugin/compare/b6d7978bf489...80120a5bbfb7

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pom.xml src/test/java/org/jenkinsci/plugins/workflow/multibranch/JobPropertyStepTest.java http://jenkins-ci.org/commit/workflow-multibranch-plugin/80120a5bbfb7d41d23a224ea28d5b9ace06b4b73 Log: Merge pull request #27 from abayer/jenkins-37219-test JENKINS-37219 Test for new overrideIndexTriggers job property. Compare: https://github.com/jenkinsci/workflow-multibranch-plugin/compare/b6d7978bf489...80120a5bbfb7
            Hide
            sonneveldsmartward Nick Sonneveld added a comment -

            So if I wanted new branches to be built but all further changes to be built daily, would I use this property in the Jenkinsfile?:

            properties([overrideIndexTriggers(false), pipelineTriggers([pollSCM('@daily')])])
            
            Show
            sonneveldsmartward Nick Sonneveld added a comment - So if I wanted new branches to be built but all further changes to be built daily, would I use this property in the Jenkinsfile?: properties([overrideIndexTriggers( false ), pipelineTriggers([pollSCM( '@daily' )])])
            Hide
            sonneveldsmartward Nick Sonneveld added a comment -

            Andrew Bayer Possibly some issues related to this in JENKINS-39092

            Show
            sonneveldsmartward Nick Sonneveld added a comment - Andrew Bayer Possibly some issues related to this in JENKINS-39092

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                abayer Andrew Bayer
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: