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

EnvInject cannot resolve Team Concert plugin variables

XMLWordPrintable

      Team Concert plugin automatically creates several environment variables during the SCM checkout. Jenkins is able to resolve them properly, but EnvInject isn't.

      In order to reproduce the bug, configure the Team Concert plugin as specified here: https://wiki.jenkins-ci.org/display/JENKINS/Team+Concert+Plugin

      Then simply add and EnvInject build step with the following Properties Content:
      TESTE=${RTCBuildResultUUID}

      where RTCBuildResultUUID is a known variable at this point. It can be proved with a Windows Batch build step "echo %RTCBuildResultUUID%".

      The Console Output will print
      [EnvInject] - Injecting as environment variables the properties content
      TESTE=${RTCBuildResultUUID}

      Here, RTCBuildResultUUID is not replaced by its actual content.

      The attached images show the configuration and the console output. Two variable copies are created (SuccessfulVar and FailedVar), the first is persisted even when the original variable changed its value. The latter one isn't persisted.

        1. config.png
          37 kB
          Rafael Rezende
        2. console_output.png
          37 kB
          Rafael Rezende

            gbois Gregory Boissinot
            rafaelrezend Rafael Rezende
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: