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

Env Inject Plugin doesn't substitute ${WORKSPACE} variable at all when used in 'Preparing an environment for the job'

    Details

    • Similar Issues:

      Description

      Since we upgraded to EnvInject v1.30 we don't get our variable set if they are dependend on ${WORKSPACE}.
      Please check the job log snippet:
      --------------------------------------------------------------
      11:02:12 [EnvInject] - Preparing an environment for the job.
      11:02:12 [EnvInject] - Jenkins system variables are kept.
      11:02:12 [EnvInject] - Jenkins build variables are kept.
      11:02:12 [EnvInject] - Injecting as environment variables the properties content
      11:02:12 HOME=${WORKSPACE}\home\<USER>
      11:02:12
      11:02:12 [EnvInject] - Variables injected successfully.
      11:02:12 [EnvInject] - Unset unresolved 'WORK_DRIVE' variable.
      11:02:12 [EnvInject] - Unset unresolved 'HOME' variable.

        Attachments

          Activity

          macdrega Joerg Schwaerzler created issue -
          gbois Gregory Boissinot made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          macdrega Joerg Schwaerzler made changes -
          Description Since we upgraded to EnvInject v1.30 we don't get our variable set if they are dependend on ${WORKSPACE}.
          Please check the job log snippet:
          --------------------------------------------------------------
          11:02:12 [EnvInject] - Preparing an environment for the job.
          11:02:12 [EnvInject] - Jenkins system variables are kept.
          11:02:12 [EnvInject] - Jenkins build variables are kept.
          11:02:12 [EnvInject] - Injecting as environment variables the properties content
          11:02:12 HOME=${WORKSPACE}\home\muccctt1
          11:02:12
          11:02:12 [EnvInject] - Variables injected successfully.
          11:02:12 [EnvInject] - Unset unresolved 'WORK_DRIVE' variable.
          11:02:12 [EnvInject] - Unset unresolved 'HOME' variable.
          Since we upgraded to EnvInject v1.30 we don't get our variable set if they are dependend on ${WORKSPACE}.
          Please check the job log snippet:
          --------------------------------------------------------------
          11:02:12 [EnvInject] - Preparing an environment for the job.
          11:02:12 [EnvInject] - Jenkins system variables are kept.
          11:02:12 [EnvInject] - Jenkins build variables are kept.
          11:02:12 [EnvInject] - Injecting as environment variables the properties content
          11:02:12 HOME=${WORKSPACE}\home\<USER>
          11:02:12
          11:02:12 [EnvInject] - Variables injected successfully.
          11:02:12 [EnvInject] - Unset unresolved 'WORK_DRIVE' variable.
          11:02:12 [EnvInject] - Unset unresolved 'HOME' variable.
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 143404 ] JNJira + In-Review [ 190535 ]

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              macdrega Joerg Schwaerzler
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: