Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb7fd88

Browse files
committed
ci: Set apt to retry operations on failure
At some point, Azure servers were having a small hiccup, and I noticed this setup in some unrelated repository. Allowing a couple retries _may_ help with minor issues like those.
1 parent 690884f commit eb7fd88

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ jobs:
8484
run: |
8585
case "${{ runner.os }}" in
8686
Linux)
87+
echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries
8788
sudo apt-get update -yy
8889
sudo apt-get install -yy \
8990
ccache \

azure-pipelines.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ stages:
9090
set -e
9191
case "$(python -c 'import sys; print(sys.platform)')" in
9292
linux)
93+
echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries
9394
sudo apt update
9495
sudo apt install \
9596
cm-super \

0 commit comments

Comments
 (0)