command not found from Jenkins Execute Shell
Your Jenkins setup has a different path than the user you logged in with.
There are two solutions:
Add the path to the executable in the PATH environment variable. Use
where eb
to find the correct path. Then in Jenkins, click on Manage Jenkins -> Configure System, Global Properties. Check Environment Variables. Set Name toPATH
. Set Value to$PATH:/path/to/eb
. Then restart Jenkins.Call the
eb
command with its fully qualified path.
EDIT: Added steps to update path in Jenkins.
Seth Sam
Updated on July 06, 2022Comments
-
Seth Sam almost 2 years
Hi Jenkins and AWS Guru's
I already look online for any possible solutions but not getting a solution for my problem. I just issued an "eb --version" on Jenkins execute shell under a test project but getting "eb: command not found" during the execution.
Wierd thing is if I issue the same command on the Jenkins box via CLI I'm getting a good response from it. Any suggestions for the fix please? thanks in advance