Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running AWS Command Line Interface using Jenkins: command not found?

Here is my infrastructure:

  • M1 is Jenkins master, running OS X (Mountain Lion)
  • M2 is Jenkins slave, running OS X (Mountain Lion)
  • J is a Jenkins job, running on M2

On M2, I have installed AWC CLI using pip, and run aws command manually successfully.

I set up the J job to run that aws command. But when J runs, it fails and the error message is:

... aws: command not found

Do you have any idea this happens and how to fix it?

Thank you.

like image 316
Tung Nguyen Avatar asked Dec 12 '13 11:12

Tung Nguyen


1 Answers

Not so tough though: I should have given the full path to aws tool. In my case, the correct command should be:

/usr/local/bin/aws <other sub-command and options>

This solves the problem. Hope this will save someone few hours struggling.

like image 166
Tung Nguyen Avatar answered Sep 28 '22 02:09

Tung Nguyen