I had a problem running a bash script as a job in Jenkins (execute shell step). Basically, I narrowed down my script to be a single line to check why Jenkins is not running it. Here he is:
waxsim
So this is just one line. This should give me this result when working without parameters:
No app-path was specified! usage: waxsim [options] app-path example: waxsim -s 2.2 /path/to/app.app Available options are: -s sdk Version number of sdk to use (-s 3.1) -f family Device to use (-f ipad) -e VAR=value Environment variable to set (-e CFFIXED_HOME=/tmp/iphonehome) -a Available SDKs -v path Output video recording at path -h Prints out this wonderful documentation!
Jenkins works as a jenkins user. When the task runs, it fails:
+ waxsim /var/folders/gx/t63prwt53w7gr2jjt9k66q9800009c/T/hudson4478539334800834890.sh: line 3: waxsim: No such file or directory Build step 'Execute shell' marked build as failure
When I execute waxsim manually, logged in as a jenkins user, everything works fine. It works for every user on the machine. He works not only on Jenkins' quest. Does anyone know what the problem is?
I tried to specify the full path to waxsim , which is: /usr/bin/waxsim , but that does not make any difference.
Thanks!
source share