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

"Alternate settings file" build parameter is getting cleaned after job execution

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None

      After the execution of a job, the "Alternate settings file" build parameter is getting cleaned.

      To reproduce the bug, follow the steps:

      1. Create a new Maven2 job.
      2. Fill in "Alternate settings file" for the job, and Maven targets "clean install" (Don't need a working project for compilation, the job will fail, but the bug is reproduced)
      3. Execute the job
      4. Reopen the job configuration. The "Alternate settings file" parameter is gone.

      Obs.: With "Job Config History" plugin it is possible to view the change generated by SYSTEM to config file, removing the alternate settings parameter.

      The first change after the creation shows the configuration of the alternateSettings parameter:
      @@ -10,15 +11,18 @@
      <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
      <triggers class="vector"/>
      <concurrentBuild>false</concurrentBuild>
      + <goals>clean install</goals>
      + <alternateSettings>C:/jenkins-data/settings-alt.xml</alternateSettings>
      <aggregatorStyleBuild>true</aggregatorStyleBuild>
      <incrementalBuild>false</incrementalBuild>
      <usePrivateRepository>false</usePrivateRepository>

      After the job execution the parameter is gone:
      @@ -12,18 +12,17 @@
      <triggers class="vector"/>
      <concurrentBuild>false</concurrentBuild>
      <goals>clean install</goals>

      • <alternateSettings>C:/jenkins-data/settings-alt.xml</alternateSettings>
        <aggregatorStyleBuild>true</aggregatorStyleBuild>
        <incrementalBuild>false</incrementalBuild>
        <usePrivateRepository>false</usePrivateRepository>

          [JENKINS-10955] "Alternate settings file" build parameter is getting cleaned after job execution

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: olivier lamy Path: changelog.html http://jenkins-ci.org/commit/jenkins/b68aaa65f322f7dea271b844966cf582e67c876e Log: JENKINS-10955 add changelog entry Compare: https://github.com/jenkinsci/jenkins/compare/2ec651e...b68aaa6

          Olivier Lamy added a comment -

          should be fixed now.
          If not please reopen the issue.

          Olivier Lamy added a comment - should be fixed now. If not please reopen the issue.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #1177
          JENKINS-10955 "Alternate settings file" build parameter is getting cleaned after job execution
          JENKINS-10955 add changelog entry

          Olivier Lamy : ef49c65af11cb7cfb65c6a8d5fef8365db2a23cf
          Files :

          • maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java

          Olivier Lamy : b68aaa65f322f7dea271b844966cf582e67c876e
          Files :

          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #1177 JENKINS-10955 "Alternate settings file" build parameter is getting cleaned after job execution JENKINS-10955 add changelog entry Olivier Lamy : ef49c65af11cb7cfb65c6a8d5fef8365db2a23cf Files : maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java Olivier Lamy : b68aaa65f322f7dea271b844966cf582e67c876e Files : changelog.html

          Stevo Slavić added a comment -

          Just installed 1.433 and I'm still seeing this

          Stevo Slavić added a comment - Just installed 1.433 and I'm still seeing this

          Laurent Gosselin added a comment - - edited

          I think it is normal because the link dogfood provided refers to a version 1.434-SNAPSHOT. So I guess the fix should not be present in 1.433. But I agree that this is confusing since Jenkins changelog of version 1.433 pretends the fix is included.
          Personally I replaced my jenkin.war with the one included in the build 1181 and the problem is fixed for me. I'm keeping that version running until the next stable release.

          Laurent Gosselin added a comment - - edited I think it is normal because the link dogfood provided refers to a version 1.434-SNAPSHOT. So I guess the fix should not be present in 1.433. But I agree that this is confusing since Jenkins changelog of version 1.433 pretends the fix is included. Personally I replaced my jenkin.war with the one included in the build 1181 and the problem is fixed for me. I'm keeping that version running until the next stable release.

          Olivier Lamy added a comment -

          my bad, I failed in changelog file

          Olivier Lamy added a comment - my bad, I failed in changelog file

          Stevo Slavić added a comment -

          OK, please fix the changelog and resolve the issue.

          Stevo Slavić added a comment - OK, please fix the changelog and resolve the issue.

          Still happens to me in version 1.434 upgraded from the Debian/Ubuntu repository

          David Rabinowitz added a comment - Still happens to me in version 1.434 upgraded from the Debian/Ubuntu repository

          JP Courson added a comment - - edited

          Fixed for me in version 1.434 after having updated the maven plugin to 1.434 as well.

          JP Courson added a comment - - edited Fixed for me in version 1.434 after having updated the maven plugin to 1.434 as well.

          Code changed in jenkins
          User: olivier lamy
          Path:
          src/main/java/hudson/maven/MavenModuleSetBuild.java
          http://jenkins-ci.org/commit/maven-plugin/d1585a313edcfc43cf101d290b8be77ca68a46a6
          Log:
          JENKINS-10955 "Alternate settings file" build parameter is getting cleaned after job execution

          Originally-Committed-As: ef49c65af11cb7cfb65c6a8d5fef8365db2a23cf

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: olivier lamy Path: src/main/java/hudson/maven/MavenModuleSetBuild.java http://jenkins-ci.org/commit/maven-plugin/d1585a313edcfc43cf101d290b8be77ca68a46a6 Log: JENKINS-10955 "Alternate settings file" build parameter is getting cleaned after job execution Originally-Committed-As: ef49c65af11cb7cfb65c6a8d5fef8365db2a23cf

            olamy Olivier Lamy
            lluccia Leandro Conca
            Votes:
            12 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: