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

No recursive expansion in promoted build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • envinject-plugin
    • None
    • Jenkins 2.25 (on Windows Server 2008 R2 x64),
      envinject 1.93.1, promoted-builds 2.27

      We have determined a problem with using an environment-variable, which are defined by using another variable (Ie. recursive expansion) in a promoted build.

      Following (minimal) scenario:

      a) Inject environment variable

      Output2=E:\\Temp\\$PROMOTED_NUMBER
      

      ... and the console shows ...

      [EnvInject] - Injecting environment variables from a build step.
      [EnvInject] - Injecting as environment variables the properties content 
      Output=E:\Temp\$PROMOTED_NUMBER
      

      b) Using this variable as Remote File Location in ArtifactDeployer (I.e., $Output) will use "E:\Temp\$PROMOTED_NUMBER" as destination-folder (what was not our expectation).

      If we configure "E:\Temp\$PROMOTED_NUMBER" as Remote File Location, this will be expanded (eg.) "E:\Temp\42".

      Sorry - I'm not sure, whether this (assumed) expansion takes place in older versions of this plugin(s) or this behaviour is a regression ...

      Best regards from Salzburg,
      Markus

            Unassigned Unassigned
            gmc_devel GMC Software Development B&R Corporate
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: