command not found from Jenkins Execute Shell

后端 未结 2 1038
余生分开走
余生分开走 2021-01-05 17:37

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 e

2条回答
  •  广开言路
    2021-01-05 18:12

    Your Jenkins setup has a different path than the user you logged in with.

    There are two solutions:

    1. 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.

    2. Call the eb command with its fully qualified path.

    EDIT: Added steps to update path in Jenkins.

提交回复
热议问题