![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Assignee:
|
Gregory Boissinot
|
|
Attachments:
|
thisFAILS.xml, thisFAILS_log.txt, thisPASSES.xml, thisPASSES_log.txt |
|
Components:
|
envinject |
|
Created:
|
26/Mar/14 8:34 PM
|
|
Description:
|
Trivial EnvInject "script contents" throw java.io.IOException: Cannot run program "/bin/sh" (in directory "/home/slavehome/jenkins")
It seems like the script is attempting to run on the master using the slaves jenkinsHome dir.
The script contents run correctly if I add a build tool plugin that provides a tool to the environment.
I've attached a job config that fails and its log, plus a working job and log where I added a build tool. The build tool installation apparently delays the "script content" execution until after the build tool install, which ensures the CWD is actually on the slave and not master when the "script content" is run.
|
|
Environment:
|
Jenkins 1.556
envinject 1.89
tomcat 7.x
|
|
Project:
|
Jenkins
|
|
Priority:
|
Major
|
|
Reporter:
|
Trevor Baker
|
|
|
|
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
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[email protected].
For more options, visit
https://groups.google.com/d/optout.