Skip to content

Commit 6107946

Browse files
committed
Fix: move retries from job to retryCountOnTaskFailure on pytest step (matrix jobs don't support retries)
1 parent a8154b4 commit 6107946

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.Pipelines/template-pipeline-stages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ stages:
131131
jobs:
132132
- job: Test
133133
displayName: 'Run unit tests'
134-
retries: 3
135134
pool:
136135
vmImage: ubuntu-latest
137136
strategy:
@@ -198,6 +197,7 @@ stages:
198197
set -o pipefail
199198
pytest -vv --junitxml=test-results/junit.xml 2>&1 | tee test-results/pytest.log
200199
displayName: 'Run tests'
200+
retryCountOnTaskFailure: 3
201201
env:
202202
LAB_APP_CLIENT_CERT_PFX_PATH: $(LAB_APP_CLIENT_CERT_PFX_PATH)
203203

0 commit comments

Comments
 (0)