Skip to content

Commit c0ac189

Browse files
authored
Fail tool installation when writing to stderr (Azure#18311)
* Fail tool installation when writing to stderr Fail the "install coverage and junit dependencies" step if any of the tools fail to install. Add a few retries if the step fails. * use exit code instead of stderr
1 parent 9740f35 commit c0ac189

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

eng/pipelines/templates/steps/build-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,15 @@ steps:
4141

4242
- pwsh: |
4343
go install github.com/jstemmer/go-junit-report@v0.9.1
44+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
4445
go install github.com/axw/gocov/gocov@v1.1.0
46+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
4547
go install github.com/AlekSi/gocov-xml@v1.0.0
48+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
4649
go install github.com/matm/gocov-html@v0.0.0-20200509184451-71874e2e203b
50+
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
4751
displayName: "Install Coverage and Junit Dependencies"
52+
retryCountOnTaskFailure: 3
4853
4954
- ${{ if eq(parameters.TestProxy, true) }}:
5055
- template: /eng/common/testproxy/test-proxy-tool.yml

0 commit comments

Comments
 (0)