That's interesting.  I do have EnvInject installed but it is not used on these 
projects.  Perhaps it has gotten a little over aggressive?

-Jim

-----Original Message-----
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Daniel Beck
Sent: Thursday, June 28, 2012 3:59 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: SSH not executing commands in the correct order

Are you using EnvInject? There's an option to clear all environment variables a 
node inherits.

https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin

> Some use cases
>       * To remove inherited environment variables (PATH, ANT_HOME, ...) at 
> node level (master/slave), available by default for a job run.


IIRC, it didn't work for me and I never bothered to check on that particular 
feature again, maybe this option is enabled by a recent change in Jenkins?

The changelog for the current version also sounds interesting and possibly 
relevant.

> 1.56
> * Load environment variables from the node (therefore, you are able to 
> redefine classic variables such as the PATH variable at node level)


Regards,
Daniel

On 28.06.2012, at 21:10, Jim McCaskey wrote:

> I wonder how I would accomplish that by just upgrading Jenkins?  So are you 
> saying that the order that I see those in the error report has no meaning as 
> well?  I have noticed a number of SSH related issues in the last several 
> Jenkins releases.  I wonder if I just have a regression here.
> 
> -Jim
> 
> -----Original Message-----
> From: jenkinsci-users@googlegroups.com 
> [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Sami Tikka
> Sent: Thursday, June 28, 2012 1:49 PM
> To: jenkinsci-users@googlegroups.com
> Subject: Re: SSH not executing commands in the correct order
> 
> It looks like you have somehow managed to remove the PATH environment 
> variable.
> 
> -- Sami
> 
> Jim McCaskey <jim.mccas...@pervasive.com> kirjoitti 28.6.2012 kello 18.33:
> 
>> Hello all,
>> 
>> I upgraded to Jenkins 1.472 from 1.461 (I think it was 1.461) and have 
>> noticed a problem with my SSH agents.  I have a freestyle project set up 
>> that issues this command after the source gets checked out:
>> 
>> sh build.sh 10.2.5.SNAPSHOT 2>&1 | tee build.log
>> 
>> However, I am getting an error like this:
>> 
>> [projectName.aix] $ /bin/sh -xe /tmp/hudson55308.sh
>> + tee build.log
>> + sh build.sh 10.2.5.SNAPSHOT
>> + 2>& 1
>> /tmp/hudson55308.sh[2]: tee:  not found.
>> Build step 'Execute shell' marked build as failure
>> 
>> As you can see, it appears to be mangling the command.  So far I have 
>> noticed this on AIX 5.3, HP-UX itanium B.11.23, and Red Hat Linux 9.  
>> 
>> On my linux machine I tried removing the pipes thinking that was the problem 
>> and got this:
>> 
>> [projectName.linux32] $ /bin/sh -xe /tmp/hudson36543.sh
>> + sh build.sh 10.2.5.SNAPSHOT
>> /tmp/hudson36543.sh: line 2: sh: command not found
>> Build step 'Execute shell' marked build as failure
>> 
>> Any ideas on how to fix this?  Needless to say I'm dead in the water right 
>> now on these platforms.
>> 
>> -Jim
>> 
> 
> 
> 



Reply via email to