diff options
author | paulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com> | 2020-06-30 10:47:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 10:47:07 +0200 |
commit | 44e55b1d81f5defe28249d6b70b894c1ebad7c91 (patch) | |
tree | d227e10426e446cdd1a6dfaeb73eb13c56308f5f | |
parent | fa354e658404a6b8f57a5e17c9871931febb8080 (diff) | |
parent | ff807544492f1503ccac99ad6d472057f3d325a7 (diff) | |
download | ansible-clever-44e55b1d81f5defe28249d6b70b894c1ebad7c91.tar.gz ansible-clever-44e55b1d81f5defe28249d6b70b894c1ebad7c91.tar.zst ansible-clever-44e55b1d81f5defe28249d6b70b894c1ebad7c91.zip |
Merge pull request #73 from paulrbr-fl/fix-timeout-on-deploy
fix: prevent crash when the deployment times out
-rw-r--r-- | .travis.yml | 7 | ||||
-rw-r--r-- | tasks/deploy.yml | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 7ce4540..4a7aa46 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -3,7 +3,12 @@ sudo: false | |||
3 | language: nix | 3 | language: nix |
4 | nix: 2.3.4 | 4 | nix: 2.3.4 |
5 | env: | 5 | env: |
6 | - NIX_PATH=nixpkgs=channel:nixos-20.03 | 6 | - CUSTOM_NIX_PATH=nixpkgs=channel:nixos-20.03 |
7 | |||
8 | # Travis nix integration will install nix AFTER the environment variables are set | ||
9 | # and the nix installer will overide NIX_PATH variable thus we need to re-export it | ||
10 | before_install: | ||
11 | - export NIX_PATH="$CUSTOM_NIX_PATH" | ||
7 | 12 | ||
8 | install: | 13 | install: |
9 | - nix-env -i -f ./default.nix | 14 | - nix-env -i -f ./default.nix |
diff --git a/tasks/deploy.yml b/tasks/deploy.yml index c567981..f9d8408 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml | |||
@@ -75,7 +75,7 @@ | |||
75 | - name: Retry deploy to clever-cloud | 75 | - name: Retry deploy to clever-cloud |
76 | include_tasks: redeploy.yml | 76 | include_tasks: redeploy.yml |
77 | when: | 77 | when: |
78 | - not job_result.rc == 0 | 78 | - not job_result.finished or not job_result.rc == 0 |
79 | - job_result.stderr is defined | 79 | - job_result.stderr is defined |
80 | - job_result.stderr is search("Failed to read git object") | 80 | - job_result.stderr is search("Failed to read git object") |
81 | 81 | ||