From 144a13462e799ef7f2ceb3fb938bb6f7bb074a7b Mon Sep 17 00:00:00 2001 From: Joe Green Date: Mon, 4 Sep 2017 14:58:13 +0100 Subject: [PATCH] build.txt --- services/web/Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/web/Jenkinsfile b/services/web/Jenkinsfile index bee222f13b..f86462dc04 100644 --- a/services/web/Jenkinsfile +++ b/services/web/Jenkinsfile @@ -82,6 +82,7 @@ pipeline { stage('Package') { steps { sh 'rm -rf ./node_modules/grunt*' + sh 'echo ${BUILD_NUMBER} > build_number.txt' sh 'touch build.tar.gz' // Avoid tar warning about files changing during read sh 'tar -czf build.tar.gz --exclude=build.tar.gz --exclude-vcs .' } @@ -90,6 +91,8 @@ pipeline { steps { withAWS(credentials:'S3_CI_BUILDS_AWS_KEYS', region:"${S3_REGION_BUILD_ARTEFACTS}") { s3Upload(file:'build.tar.gz', bucket:"${S3_BUCKET_BUILD_ARTEFACTS}", path:"${JOB_NAME}/${BUILD_NUMBER}.tar.gz") + // The deployment process uses this file to figure out the latest build + s3Upload(file:'build_number.txt', bucket:"${S3_BUCKET_BUILD_ARTEFACTS}", path:"${JOB_NAME}/latest") } } }