Merge pull request #6 from RightBrain-Networks/bugfix/tar-issue

Bugfix/tar issue
This commit is contained in:
Derek DeJonghe 2019-08-05 13:53:03 -04:00 committed by GitHub
commit 6ae6f4afd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
Jenkinsfile vendored
View File

@ -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}-${env.VERSION}.tar.gz . --exclude='./.git'"
sh "python setup.py sdist"
}
post{
// Update Git with status of build stage.
@ -86,7 +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"
sh "aws s3 cp `find ./dist/ -name semver-*` s3://rbn-ops-pkg-us-east-1/${env.SERVICE}/${env.SERVICE}-${env.VERSION}.tar.gz"
}
post