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

project update with dsl-script does not update "rootPom" settings for maven job

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • job-dsl-plugin
    • None
    • jobDslVersion=1.53
      jenkinsVersion=2.19.3 (LTS)

      We have some job-dsl scripts which are generating maven jobs.

      I have run the scripts with a seed job with a setup of something like this:

      ...
        rootPOM('myproject')
      ...
      

      This generates a jenkins job where in the rootPom section the correct setting "myproject/pom.xml" is generated.

      Now I needed, because of project refactoring, to remove this setting in my job-dsl script.

      After removing the statement and running the seed job again, the root pom entry "myproject/pom.xml" is still there. So it seems, the update does not affect this statement.

      After remove the jenkins job per hand and running the seed job again, the root pom statement was correct removed. So in general the generation of the job seems to be correct.

      It seems that only a job-update for the root-pom section is defect.

          [JENKINS-39917] project update with dsl-script does not update "rootPom" settings for maven job

          This is the same problem as described in JENKINS-26825.

          Daniel Spilker added a comment - This is the same problem as described in JENKINS-26825 .

            daspilker Daniel Spilker
            waffel Thomas Wabner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: