Skip to content

Commit ceb20b6

Browse files
committed
fix(package) ensure fastly decache fails fast if the API answers an error - jenkins-infra/helpdesk#4910
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
1 parent ec824a3 commit ceb20b6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Jenkinsfile.d/core/package

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ pipeline {
348348
}
349349
}
350350
}
351-
stage('Invalidate Fastly Cache') {
351+
stage('Invalidate Fastly Cache for pkg.jenkins.io') {
352352
when {
353353
environment name: 'ONLY_STAGING', value: 'false'
354354
}

utils/release.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,10 @@ function guessGitBranchInformation() {
291291

292292
function invalidateFastlyCache() {
293293
: "${FASTLY_API_TOKEN:?Require FASTLY_API_TOKEN env variable}"
294+
# Expecting pkg.jenkins.io site ID
294295
: "${FASTLY_SERVICE_ID:?Require FASTLY_SERVICE_ID env variable}"
295296

296-
curl \
297+
curl --fail --location \
297298
-X POST \
298299
-H "Fastly-Key: ${FASTLY_API_TOKEN}" \
299300
-H "Accept: application/json" \

0 commit comments

Comments
 (0)