aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/deploy.yml
diff options
context:
space:
mode:
authorpaulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com>2019-05-13 15:35:36 +0200
committerGitHub <noreply@github.com>2019-05-13 15:35:36 +0200
commit1d3b813b22bc5d3a8d53fce5209008f25727d08c (patch)
tree91bc31f85687be9b2f97238208ca1af14e549549 /tasks/deploy.yml
parent6bfc325c7b90a52dab15dd2ac624b4b9643d9d66 (diff)
parentc48c25c3d0769bdb9148db3cdc1976c68d5b841f (diff)
downloadansible-clever-1.21.tar.gz
ansible-clever-1.21.tar.zst
ansible-clever-1.21.zip
Merge pull request #42 from paulrbr-fl/deploy-errors-on-application-is-up-to-datev1.21
fix(deploy): fail the task correctly when last deploymt failed
Diffstat (limited to 'tasks/deploy.yml')
-rw-r--r--tasks/deploy.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/tasks/deploy.yml b/tasks/deploy.yml
index 81e2bb7..74232a6 100644
--- a/tasks/deploy.yml
+++ b/tasks/deploy.yml
@@ -112,10 +112,12 @@
112 - clever_deploy is failed 112 - clever_deploy is failed
113 - clever_deploy.stderr is defined 113 - clever_deploy.stderr is defined
114 - clever_deploy.stderr is search("application is up-to-date") 114 - clever_deploy.stderr is search("application is up-to-date")
115 - clever_activity_valid_deploy_keyword in clever_activity_result.stdout_lines[-1] 115 - |
116 - current_commit_sha.stdout_lines[-1] in clever_activity_result.stdout_lines[-1] 116 (current_commit_sha.stdout_lines[-1] not in clever_activity_result.stdout_lines[-1])
117 or
118 (clever_activity_valid_deploy_keyword not in clever_activity_result.stdout_lines[-1])
117 119
118- name: Fail on deployment errors 120- name: Fail on any other deployment errors
119 fail: 121 fail:
120 msg: "The clever deployment failed! Please check logs above." 122 msg: "The clever deployment failed! Please check logs above."
121 when: 123 when: