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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: envinject-plugin
    • Labels:
      None
    • 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

            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: