diff options
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/deploy.yml | 8 |
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: |