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

Job DSL does not track manual changes correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • job-dsl-plugin
    • None

      The following Job DSL creates a job called test that will always show the message "This item has been changed manually since it was generated by the seed job." after test has been triggered:

      pipelineJob('test') {
          definition {
              cps {
                  script('''
                      pipeline {
                          agent any
                          stages {
                              stage('build') {
                                  steps {
                                      echo 'building'
                                  }
                              }
                          }
                      }
                  ''')
              }
          }
      }
      

            jamietanna Jamie Tanna
            aszostak Artur Szostak
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: