Skip to content

Commit 162f5be

Browse files
authored
Update Compilation Check Step (Azure#26609)
1 parent b81de8d commit 162f5be

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

eng/pipelines/templates/steps/compilation.check.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ parameters:
1010
default: "not-specified"
1111
- name: RetryLimit
1212
type: number
13-
default: 30
13+
default: 5
1414

1515
steps:
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"

0 commit comments

Comments
 (0)