diff --git a/.deployment.config.json b/.deployment.config.json index 133744ac01..85e6e4f595 100644 --- a/.deployment.config.json +++ b/.deployment.config.json @@ -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": { @@ -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": { diff --git a/Jenkinsfile b/Jenkinsfile index a838bf7127..4bb3f9c057 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' + } + } } }