Actually echo out those return codes
This commit is contained in:
parent
3cf945c58f
commit
22eadcb6e2
@ -52,7 +52,8 @@ Test:
|
|||||||
interruptible: yes
|
interruptible: yes
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- ansible-playbook --skip-tags no-test -C site.yml --vault-password-file /vaultpw
|
- ansible-playbook --skip-tags no-test -C site.yml --vault-password-file /vaultpw || error="$?"
|
||||||
|
- [ -n "$error" ] && echo "Return code $error" && false
|
||||||
|
|
||||||
Play_Against_Pis:
|
Play_Against_Pis:
|
||||||
stage: play
|
stage: play
|
||||||
@ -61,10 +62,8 @@ Play_Against_Pis:
|
|||||||
Play_Against_Desktops:
|
Play_Against_Desktops:
|
||||||
stage: play
|
stage: play
|
||||||
script:
|
script:
|
||||||
- ansible-playbook -l desktop site.yml --vault-password-file /vaultpw
|
- ansible-playbook -l desktop site.yml --vault-password-file /vaultpw || error="$?"
|
||||||
- error="$?"
|
- [ -n "$error" ] && echo "Return code $error" && false
|
||||||
- echo "Return code $error"
|
|
||||||
|
|
||||||
Play_Against_Production:
|
Play_Against_Production:
|
||||||
stage: play
|
stage: play
|
||||||
script:
|
script:
|
||||||
|
Loading…
Reference in New Issue
Block a user