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

Skip to content

Commit 540a328

Browse files
authored
Merge pull request #25720 from QuLogic/apt-retry
ci: Set apt to retry operations on failure
2 parents 21f27f1 + eb7fd88 commit 540a328

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)