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

In Maven2 jobs, variable expansion is not done for the root POM path and alternative settings

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • Hudson 1.349, Clearcase plugin 1.1.1

      I'm trying to convert an existing free-style job to maven2.
      Since I use also the Clearcase plugin, I use the ${CLEARCASE_VIEWNAME}/pom.xml to reference my root pom. Inside a freestyle job, no problem, but when using maven2 job, the variable is not expanded.
      The same applies to the alternative settings. If I provide it in options it is expanded correctly, but not in the dedicaced field. This is problematic because then, it cannot be used for post-build deployment for instance.

          [JENKINS-5885] In Maven2 jobs, variable expansion is not done for the root POM path and alternative settings

          Hal Naut added a comment -

          Seems to me that the M2 Extra Builds step expands variables fine for the same target pom path (assuming my issue is the same), so it could be another alternative solution source to Carsten's kindly provided patch.

          Hal Naut added a comment - Seems to me that the M2 Extra Builds step expands variables fine for the same target pom path (assuming my issue is the same), so it could be another alternative solution source to Carsten's kindly provided patch.

          Carsten Klein added a comment -

          I published the fix to address this problem on github.

          There is now a pull request open for the jenkins repository.

          Carsten Klein added a comment - I published the fix to address this problem on github. There is now a pull request open for the jenkins repository.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/3192dfb59f6864fa5e782163dbca749cd80bed2b
          Log:
          [FIXED JENKINS-5885] expand rootPOM with variables.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html http://jenkins-ci.org/commit/jenkins/3192dfb59f6864fa5e782163dbca749cd80bed2b Log: [FIXED JENKINS-5885] expand rootPOM with variables.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #968
          [FIXED JENKINS-5885] expand rootPOM with variables.

          Kohsuke Kawaguchi : 3192dfb59f6864fa5e782163dbca749cd80bed2b
          Files :

          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #968 [FIXED JENKINS-5885] expand rootPOM with variables. Kohsuke Kawaguchi : 3192dfb59f6864fa5e782163dbca749cd80bed2b Files : changelog.html

          Carsten Klein added a comment - - edited

          Looking at 3192dfb59f6864fa5e782163dbca749cd80bed2b
          I only see that you changed the upcoming changes in the changelog but the actual change was not incorporated.

          Just read the comment over at github. Sorry for reopening.

          Carsten Klein added a comment - - edited Looking at 3192dfb59f6864fa5e782163dbca749cd80bed2b I only see that you changed the upcoming changes in the changelog but the actual change was not incorporated. Just read the comment over at github. Sorry for reopening.

          Carsten Klein added a comment -

          Good News. See https://github.com/jenkinsci/jenkins/pull/202
          for a revised version of the patch. I also did a test compile
          and the maven plugin will now compile properly.

          Carsten Klein added a comment - Good News. See https://github.com/jenkinsci/jenkins/pull/202 for a revised version of the patch. I also did a test compile and the maven plugin will now compile properly.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #975
          [FIXED JENKINS-5885] expand rootPOM with variables.

          Kohsuke Kawaguchi : 3192dfb59f6864fa5e782163dbca749cd80bed2b
          Files :

          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #975 [FIXED JENKINS-5885] expand rootPOM with variables. Kohsuke Kawaguchi : 3192dfb59f6864fa5e782163dbca749cd80bed2b Files : changelog.html

          Carsten Klein added a comment -

          Sorry for nagging you

          I still can see this having been integrated nor fixed in version 1.424.
          It still won't expand on the rootPOM parameter.

          Thanks for looking into this.

          Carsten Klein added a comment - Sorry for nagging you I still can see this having been integrated nor fixed in version 1.424. It still won't expand on the rootPOM parameter. Thanks for looking into this.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/3192dfb59f6864fa5e782163dbca749cd80bed2b
          Log:
          [FIXED JENKINS-5885] expand rootPOM with variables.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html http://jenkins-ci.org/commit/jenkins/3192dfb59f6864fa5e782163dbca749cd80bed2b Log: [FIXED JENKINS-5885] expand rootPOM with variables.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/3192dfb59f6864fa5e782163dbca749cd80bed2b
          Log:
          [FIXED JENKINS-5885] expand rootPOM with variables.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html http://jenkins-ci.org/commit/jenkins/3192dfb59f6864fa5e782163dbca749cd80bed2b Log: [FIXED JENKINS-5885] expand rootPOM with variables.

            olamy Olivier Lamy
            vlatombe Vincent Latombe
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: