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

Removing triggers block does not remove triggers from config.xml

    Details

    • Similar Issues:

      Description

      Create a pipeline with the following configuration and run the job.

      pipeline {
          agent {
              label 'my_label'
          }
      
          triggers {
              upstream upstreamProjects: 'upstream', threshold: hudson.model.Result.SUCCESS
          }
      
          options{
              timestamps()
          }
      
          stages {
              stage('build') {
                  steps {
                      echo 'building'
                  }
              }
          }
      

      Create another job (upstream) in the same folder and run it (should see original pipeline is triggered).

      Remove triggers from original pipeline, rerun it (to ensure a new config.xml could be generated)

      Rerun upstream job

      The second run should trigger the pipeline job. What I've done in the past to workaround this is to put in a bogus upstream job in triggers to force a rewrite of config.xml.

        Attachments

          Issue Links

            Activity

            rpocase Robby Pocase created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "PR #157 (Web Link)" [ 16806 ]
            abayer Andrew Bayer made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            abayer Andrew Bayer made changes -
            Link This issue is duplicated by JENKINS-43667 [ JENKINS-43667 ]
            bitwiseman Liam Newman made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                rpocase Robby Pocase
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: