diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2020-08-06 11:44:26 +0200 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2020-08-06 15:54:27 +0200 |
commit | c3e2ff5e0f31c61eae330a1a41d7a8a83435d9bd (patch) | |
tree | f03e1db57031f574657838a8a15c41319b1c18be /tests/test-all.yml | |
parent | 315c7f51af48b54719bd793d9d28a4bb396a926a (diff) | |
download | ansible-clever-c3e2ff5e0f31c61eae330a1a41d7a8a83435d9bd.tar.gz ansible-clever-c3e2ff5e0f31c61eae330a1a41d7a8a83435d9bd.tar.zst ansible-clever-c3e2ff5e0f31c61eae330a1a41d7a8a83435d9bd.zip |
deploy: try to restart the app when the CLI asks to do it
In some cases (rollback or deployment errored on clever side),
clever-tools will fail when calling `clever deploy` because it thinks
the currently being deployed commit is already deployed. However in
some cases the git pushed commit is not the currently running commit.
Leading to a failure in our deployment process. The proposed solution
from the clever tools error is to launch `clever restart`.
Until we wait for
https://github.com/CleverCloud/clever-tools/issues/422 to be fixed,
let's do what the error message say: try to restart in case of a
deployment failure.
Diffstat (limited to 'tests/test-all.yml')
-rw-r--r-- | tests/test-all.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-all.yml b/tests/test-all.yml index 8a6c0ba..b9c5dea 100644 --- a/tests/test-all.yml +++ b/tests/test-all.yml | |||
@@ -3,6 +3,7 @@ | |||
3 | - import_playbook: ./test-configure-app.yml | 3 | - import_playbook: ./test-configure-app.yml |
4 | - import_playbook: ./test-haskell-app.yml | 4 | - import_playbook: ./test-haskell-app.yml |
5 | - import_playbook: ./test-noop-deploy.yml | 5 | - import_playbook: ./test-noop-deploy.yml |
6 | - import_playbook: ./test-restart-deploy.yml | ||
6 | - import_playbook: ./test-scalability.yml | 7 | - import_playbook: ./test-scalability.yml |
7 | - import_playbook: ./test-service-deps.yml | 8 | - import_playbook: ./test-service-deps.yml |
8 | - import_playbook: ./test-restart-app.yml | 9 | - import_playbook: ./test-restart-app.yml |