Merge pull request #6 from RightBrain-Networks/bugfix/tar-issue
Bugfix/tar issue
This commit is contained in:
commit
6ae6f4afd7
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -60,7 +60,7 @@ pipeline {
|
|||||||
// Docker build flags are set via the getDockerBuildFlags() shared library.
|
// Docker build flags are set via the getDockerBuildFlags() shared library.
|
||||||
sh "docker build ${getDockerBuildFlags()} -t ${env.DOCKER_REGISTRY}/${env.SERVICE}:${env.VERSION} ."
|
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{
|
post{
|
||||||
// Update Git with status of build stage.
|
// 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
|
post
|
||||||
|
Loading…
x
Reference in New Issue
Block a user