Skip to content

Commit 499289a

Browse files
authored
Fail the gitlab job if we fail to upload the artifacts (#7861)
## Summary of changes Fails the gitlab `publish` job if we fail to upload ## Reason for change We have been silently failing, and it's blocking the release ## Implementation details `exit 1` if we fail to upload ## Test coverage This is the test. ~We're still broken, so this should fail.~ https://datadoghq.atlassian.net/browse/APMLP-722
1 parent dae5d53 commit 499289a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ publish:
9292
Start-Sleep -Milliseconds 100
9393
}
9494
} while ($i -lt 3)
95+
# If we got here, all retries failed – fail the job:
96+
Write-Error "Failed to upload artifacts to S3 after $i attempts."
97+
exit 1
98+
9599
96100
download-single-step-artifacts:
97101
stage: package

0 commit comments

Comments
 (0)