AWS 'eb deploy' always returns 0

I use "eb deployment" in my continuous integration script. I have two problems:

  • It always returns a return code of 0, even if there is an error. This breaks my deployment pipeline because there is no way to detect an error.

  • It displays output only after the command completes.

Is there a way to make "eb deploy" work like any regular script and return the correct error codes?

+4
source share
1 answer

, . , grep . :

eb deploy 

grep . ( : ), :

eb deploy | tee /dev/tty | grep "update completed successfully"

, tee, , ( circleci).

+7

All Articles