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 >