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

After upgrade to 2.164.1 from 2.150.3 injecting from file with absolute path does not work

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We use ${TMP}\Jenkins\${BUILD_TAG}_inject.inp to point to a file in the "Inject environment variables" and "Parameters from properties file". Eg the path ${TMP} is absolute.

      This has always worked and the "Inject environment variables" still works. But after upgrading to Jenkins 2.164.1 "Parameters from properties file" reports an this error:
      [EnvInject] - Injecting environment variables from a build step.
      [EnvInject] - Injecting as environment variables the properties file path 'c:/temp/Jenkins/jenkins- Build Installer 1.6-82_inject.inp'
      [EnvInject] - Variables injected successfully.
      ERROR: Build step failed with exception
      java.lang.IllegalArgumentException: Only a relative path is supported, the given path is absolute: c:/temp/Jenkins/jenkins Build Installer 1.6-82_inject.inp/

        Attachments

          Activity

          nih Nikolaj Hestbek created issue -
          nih Nikolaj Hestbek made changes -
          Field Original Value New Value
          Description We use ${TMP}\Jenkins\${BUILD_TAG}_inject.inp to point to a file in the "Inject environment variables" and "Parameters from properties file". Eg the path ${TMP} is absolute.

          This has always worked and the "Inject environment variables" still works. But after upgrading to Jenkins 2.164.1 "Parameters from properties file" reports an this error:
          [EnvInject] - Injecting environment variables from a build step.
          [EnvInject] - Injecting as environment variables the properties file path 'c:/temp/Jenkins/jenkins-CMArun Build Installer 1.6-82_inject.inp'
          [EnvInject] - Variables injected successfully.
          ERROR: Build step failed with exception
          java.lang.IllegalArgumentException: Only a relative path is supported, the given path is absolute: c:/temp/Jenkins/jenkins-CMArun Build Installer 1.6-82_inject.inp/
          We use ${TMP}\Jenkins\${BUILD_TAG}_inject.inp to point to a file in the "Inject environment variables" and "Parameters from properties file". Eg the path ${TMP} is absolute.

          This has always worked and the "Inject environment variables" still works. But after upgrading to Jenkins 2.164.1 "Parameters from properties file" reports an this error:
           [EnvInject] - Injecting environment variables from a build step.
           [EnvInject] - Injecting as environment variables the properties file path 'c:/temp/Jenkins/jenkins- Build Installer 1.6-82_inject.inp'
           [EnvInject] - Variables injected successfully.
           ERROR: Build step failed with exception
           java.lang.IllegalArgumentException: Only a relative path is supported, the given path is absolute: c:/temp/Jenkins/jenkins Build Installer 1.6-82_inject.inp/

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            nih Nikolaj Hestbek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: