--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/B8D164BED956C5439875951895CB4B22283E0675%40CAFRFD1MSGUSRIA.ITServices.sbc.com.
For more options, visit https://groups.google.com/d/optout.
I print the PATH inside the subshell, just before running “java –jar slave.jar ...”, and it’s correct. The build job, when it does not manually set the PATH, gets an incorrect PATH, so the build job fails. When the build job is changed to manually set the PATH, it works fine.
I know that subprocesses inherit the environment of the parent, but I believe that build jobs run on a jenkins slave do not inherit the environment of the process that ran the slave. I believe that jobs need to specify their own PATH, or perhaps get a PATH setting for the node in the Jenkins master (which is not the same as the PATH used to run the slave). I believe this makes more logical sense than setting the environment for all the build jobs on a slave by setting the environment of the process that runs the slave.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAMui946Qiu_i05P3F1Uogy4CUR5eXssTE3NOQ_C9mBjwMdt-xw%40mail.gmail.com.