|
||||||||
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
- [JIRA] (JENKINS-16233) EnvInject pl... bsilverb...@mozilla.com (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... dave.h...@gmail.com (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... gregory.boissi...@gmail.com (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... gregory.boissi...@gmail.com (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... gregory.boissi...@gmail.com (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... bsilverb...@mozilla.com (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... dave.h...@gmail.com (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... gregory.boissi...@gmail.com (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... scm_issue_l...@java.net (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... gregory.boissi...@gmail.com (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... gregory.boissi...@gmail.com (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... dave.h...@gmail.com (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... gregory.boissi...@gmail.com (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... magnus.jacobs...@netinsight.net (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... gregory.boissi...@gmail.com (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... magnus.jacobs...@netinsight.net (JIRA)
- [JIRA] (JENKINS-16233) EnvInje... magnus.jacobs...@netinsight.net (JIRA)
This is happening right now. We need to restart Jenkins to fix this, but it will no doubt happen again. I've done a little investigation and found that echoing ${WORKSPACE} in a build shell shows the correct value, but EnvInject has injected the wrong value:
[CHECKED] Inject environment variables to the build process
Properties Content:
TEST=${WORKSPACE}
PATH=${WORKSPACE}/.env/bin:$PATH
Execute shell:
printenv
echo ${WORKSPACE}
echo ${PATH}
Console output:
...
[EnvInject] - Executing scripts and injecting environment variables after the SCM step.
[EnvInject] - Injecting as environment variables the properties content
TEST=/Users/Shared/Jenkins/Home/jobs/bidpom.stage.saucelabs/workspace
PATH=/Users/Shared/Jenkins/Home/jobs/bidpom.stage.saucelabs/workspace/.env/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
[EnvInject] - Variables injected successfully.
...
+ printenv
...
TEST=/Users/Shared/Jenkins/Home/jobs/bidpom.stage.saucelabs/workspace
WORKSPACE=/Users/Shared/Jenkins/Home/jobs/bouncer.prod/workspace
PATH=/Users/Shared/Jenkins/Home/jobs/bidpom.stage.saucelabs/workspace/.env/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
...
+ echo /Users/Shared/Jenkins/Home/jobs/bouncer.prod/workspace
/Users/Shared/Jenkins/Home/jobs/bouncer.prod/workspace
+ echo /Users/Shared/Jenkins/Home/jobs/bidpom.stage.saucelabs/workspace/.env/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
/Users/Shared/Jenkins/Home/jobs/bidpom.stage.saucelabs/workspace/.env/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
So you can see that WORKSPACE is accurate according to Jenkins environment variables, but EnvInject is expanding it to an incorrect value.
Please let me know if there's any additional information that would be useful for the next time this fails.