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

          Leandro Conca created issue -
          Dan Rollo made changes -
          Link New: This issue is related to JENKINS-11004 [ JENKINS-11004 ]
          Stevo Slavić made changes -
          Assignee New: Olivier Lamy [ olamy ]
          Olivier Lamy made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Stevo Slavić made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          OHTAKE Tomohiro made changes -
          Link New: This issue is duplicated by JENKINS-10953 [ JENKINS-10953 ]
          Andrew Bayer made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Jenkins IRC Bot made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: maven2 [ 15487 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 141164 ] New: JNJira + In-Review [ 189462 ]

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

              Created:
              Updated:
              Resolved: