From 70bb018cc60ea7ad4cd1207f0618dd5a4b88b76f Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Thu, 1 Aug 2019 15:58:25 -0400 Subject: [PATCH] Ship to s# --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 93c6ec3..cc95322 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -60,7 +60,7 @@ pipeline { // Docker build flags are set via the getDockerBuildFlags() shared library. sh "docker build ${getDockerBuildFlags()} -t ${env.DOCKER_REGISTRY}/${env.SERVICE}:${env.VERSION} ." - //sh "tar -czvf ${env.SERVICE}-${getVersion('-d')}.tar.gz deployer" + sh "tar -czvf ${env.SERVICE}-${env.VERSION}.tar.gz . --exclude='./.git'" } post{ // Update Git with status of build stage. @@ -86,6 +86,7 @@ pipeline { } } } + sh "aws s3 cp dist/${env.SERVICE}-*.tar.gz s3://rbn-ops-pkg-us-east-1/${env.SERVICE}/${env.SERVICE}-${env.VERSION}.tar.gz" } post