Skip to content

Commit

Permalink
move "tag NPM latest" in ordered phase instead of certifiers (#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibodeauJF committed May 6, 2022
1 parent 86cb8b0 commit 4243690
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .deployment.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@
"acl": "public-read"
}
}
},
{
"id": "npm-latest-tag-updated",
"team_jenkins": {
"disabled": true,
"job_name": "search_ui/job/update_npm_latest_tag",
"extra_parameters": {
"LATEST_NPM_VERSION": "$[LATEST_NPM_VERSION]"
},
"prd": {
"disabled": false
}
}
}
],
"certifiers": {
Expand All @@ -46,15 +59,6 @@
{
"system_certifier": "snyk-code"
}
],
"prd": [
{
"job_name": "search_ui/job/update_npm_latest_tag",
"tag_suffix": "npm_latest_tag_updated",
"extra_parameters": {
"LATEST_NPM_VERSION": "$[LATEST_NPM_VERSION]"
}
}
]
},
"snyk": {
Expand Down
11 changes: 11 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ node('linux && docker') {

sh 'node ./build/deployment-pipeline.deploy.js || true'
}

stage('Cloudfront invalidation') {
withCredentials([
[
$class: "AmazonWebServicesCredentialsBinding",
credentialsId: "CloudfrontCacheInvalidation",
]
]) {
sh 'node invalidate.cloudfront.js'
}
}
}

}
Expand Down

0 comments on commit 4243690

Please sign in to comment.