-# ####
-# Expects all configuration to be located in the project's repository.
-# Making a git commit bound to the same *configuration* and *executable* version.
-# ##
-- name: Fail if current commit is not the last deployed one
- fail:
- msg: "The clever deployment failed! Please check latest deploy activity logs above."
- when:
- - clever_deploy is failed
- - clever_deploy.stderr is defined
- - clever_deploy.stderr is search("application is up-to-date")
- - |
- (current_commit_sha.stdout_lines[-1] not in clever_activity_result.stdout_lines[-1])
- or
- (clever_activity_valid_deploy_keyword not in clever_activity_result.stdout_lines[-1])
+- name: Waiting script logs (stderr)
+ debug:
+ var: job_result.stderr_lines
+ when: job_result.stderr_lines is defined