Karim Varela
Karim Varela

Reputation: 7652

"env: bash: No such file or directory" trying to run gradle on Jenkins on Mac Mini

I've installed the gradle plugin on Jenkins, but whenever I try to run a gradle task, I get the error:

env: bash: No such file or directory

It's weird, I don't get this error when I run the same task from the terminal at the same location.

Any ideas?

Upvotes: 1

Views: 3020

Answers (1)

Karim Varela
Karim Varela

Reputation: 7652

Glenn essentially answered my question above in his comment. My PATH in Jenkins was different from my PATH from the terminal. I went and updated my /etc/launchd.conf file and added /bin to the PATH and Jenkins was able to find bash.

Upvotes: 1

Related Questions