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 -
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java
          http://jenkins-ci.org/commit/envinject-plugin/f101df584bbf27af37a914bf27bcb206db2b97f5
          Log:
          Fix JENKINS-12944

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java http://jenkins-ci.org/commit/envinject-plugin/f101df584bbf27af37a914bf27bcb206db2b97f5 Log: Fix JENKINS-12944
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectVariableGetter.java
          http://jenkins-ci.org/commit/envinject-plugin/1be2cee5f7bf55dfeb5c99525d181fa05d9faf02
          Log:
          Fix JENKINS-12944

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectVariableGetter.java http://jenkins-ci.org/commit/envinject-plugin/1be2cee5f7bf55dfeb5c99525d181fa05d9faf02 Log: Fix JENKINS-12944
          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: