1

I set up a Jenkins job to run an aws command. When I execute the build, it fails and the error message is:

+ /usr/local/aws/bin/aws elasticbeanstalk describe-environments
/tmp/hudson3332739386589747399.sh: 2: /tmp/hudson3332739386589747399.sh: /usr/local/aws/bin/aws: not found 
Build step 'Execute shell' marked build as failure

I don't know what I'm doing wrong. Any ideas how to fix it?

  • Make sure to have IAM permissions to your AWS account on jenkins – iSkore Mar 25 '16 at 9:41
  • Have you specified Access Key ID/Secret Access Key/Region ? – ALex_hha Mar 25 '16 at 9:42
  • For the Access Keys and Region,yeah I specified them – Ahmed Mar 25 '16 at 10:05
  • @ahmed, no problem! Glad to help. I have posted this as the answer. Please mark it as your solution to properly close out this question – iSkore Mar 25 '16 at 11:08
0

Be sure to have appropriate permissions for Jenkins to access your AWS Account in your IAM role or permission set that it assumes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.