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

Environment variable no longer expanded in Maven 'Goals and options'

XMLWordPrintable

      We have a maven job with the Jenkins Config File Provider plugin configured to provide a properties file and put it location in a TEST_PROPERTIES environment variable.
      Then the 'goals and options' field contains -Dproperties.url=file://${TEST_PROPERTIES}

      This worked before a recent upgrade to Jenkins 1.500, but now the variable is not expanded which causes build to fail.

      Log from a build before upgrade to 1.500:

      [...]
      provisoning config files...
      copy managed file [local.properties] to file:/srv/tmp/config1408060397776967617tmp
      [...]
      Executing Maven: -B [...] -Dproperties.url=file:///srv/tmp/config1408060397776967617tmp

      Log from a build under 1.500:

      [...]
      provisoning config files...
      copy managed file [local.properties] to file:/srv/tmp/config5441788955584931389tmp
      [...]
      Executing Maven: -B [...] -Dproperties.url=file://${TEST_PROPERTIES}

            mrebasti Marcelo Rebasti
            mdp mdp
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: