File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
eng/pipelines/templates/steps Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ parameters:
1010 default : " not-specified"
1111 - name : RetryLimit
1212 type : number
13- default : 30
13+ default : 5
1414
1515steps :
1616 - download : current
@@ -26,14 +26,14 @@ steps:
2626 exit 1
2727 }
2828 foreach ($retry in 0..${{ parameters.RetryLimit }}) {
29- Write-Host "mvn --no-transfer-progress -f $pomf compile"
30- mvn --no-transfer-progress -f $pomf compile
31- if (!$LASTEXITCODE -or ($retry -ge ${{ parameters.RetryLimit }})) { break }
29+ Write-Host "mvn --no-transfer-progress --update-snapshots - f $pomf clean compile"
30+ mvn --no-transfer-progress --update-snapshots - f $pomf clean compile
31+ if (!$LASTEXITCODE) { exit 0 }
3232 Write-Host "Install failed, retrying in 1 minute..."
3333 Start-Sleep -s 60
3434 }
3535
36- exit $LASTEXITCODE
36+ exit 1
3737
3838 workingDirectory: ${{parameters.ArtifactDirectory}}
3939 displayName: "Verify Package Compilation"
You can’t perform that action at this time.
0 commit comments