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
Your Jenkins controller is running on Windows. Windows uses batch and powershell for its command line scripting. If you want to run a shell script, add an agent on an operating system that supports bash.
Make sure sudo works for the user that runs the Jenkins process. Show activity on this post. Jenkins runs with 'jenkins` user. Just cause it works in terminal with your logged in user, doesn't mean that it's configured to work with 'jenkins' user.
Your Jenkins controller is running on Windows. Windows uses batch and powershell for its command line scripting. If you want to run a shell script, add an agent on an operating system that supports bash. That could be a Linux Docker based agent running in Docker on your Windows computer.
Your Jenkins setup has a different path than the user you logged in with. 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.
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 to PATH
. 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With