Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Warren <bmw@users.noreply.github.com>2020-10-01 03:05:52 +0300
committerGitHub <noreply@github.com>2020-10-01 03:05:52 +0300
commit160b209394059b649542912ea48a793d130fd38d (patch)
tree5d9e1db265e57b1b7debc40a03d32215ec2c1dfe /.azure-pipelines
parentcac9d8f75ee2ffa668d402aecfbc74f038b34d45 (diff)
Automatically retry test farm tests (#8325)
Fixes #8317. * move retry to script * Retry test farm tests. * Fix retry path.
Diffstat (limited to '.azure-pipelines')
-rw-r--r--.azure-pipelines/templates/stages/deploy-stage.yml16
1 files changed, 1 insertions, 15 deletions
diff --git a/.azure-pipelines/templates/stages/deploy-stage.yml b/.azure-pipelines/templates/stages/deploy-stage.yml
index 17cb824d5..ac2044f99 100644
--- a/.azure-pipelines/templates/stages/deploy-stage.yml
+++ b/.azure-pipelines/templates/stages/deploy-stage.yml
@@ -55,24 +55,10 @@ stages:
secureFile: snapcraft.cfg
- bash: |
set -e
- retry_command() {
- # based on travis_retry.bash https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/bash/travis_retry.bash
- local result=0
- local count=1
- while [[ "${count}" -le 3 ]]; do
- result=0
- "${@}" || result="${?}"
- if [[ $result -eq 0 ]]; then break; fi
- count="$((count + 1))"
- sleep 1
- done
-
- return "${result}"
- }
mkdir -p .snapcraft
ln -s $(snapcraftCfg.secureFilePath) .snapcraft/snapcraft.cfg
for SNAP_FILE in snap/*.snap; do
- retry_command eval snapcraft upload --release=${{ parameters.snapReleaseChannel }} "${SNAP_FILE}"
+ tools/retry.sh eval snapcraft upload --release=${{ parameters.snapReleaseChannel }} "${SNAP_FILE}"
done
displayName: Publish to Snap store
- job: publish_docker