Run autosemver in docker

This commit is contained in:
2019-04-11 14:33:00 -04:00
parent 6750b10544
commit b740ed8e40

9
Jenkinsfile vendored
View File

@ -11,6 +11,11 @@ pipeline {
} }
stages { stages {
stage('Version') { stage('Version') {
agent {
docker {
image '356438515751.dkr.ecr.us-east-1.amazonaws.com:auto-semver'
}
}
steps { steps {
// runs the automatic semver tool which will version, & tag, // runs the automatic semver tool which will version, & tag,
runAutoSemver() runAutoSemver()
@ -19,7 +24,6 @@ pipeline {
stage('Build') { stage('Build') {
steps { steps {
echo "Building ${env.SERVICE} docker image" echo "Building ${env.SERVICE} docker image"
// Docker build flags are set via the getDockerBuildFlags() shared library. // Docker build flags are set via the getDockerBuildFlags() shared library.
@ -41,8 +45,7 @@ pipeline {
{ {
steps { steps {
withEcr { withEcr {
//sh "docker push ${env.DOCKER_REGISTRY}/${env.SERVICE}:${getVersion('-d')}" sh "docker push ${env.DOCKER_REGISTRY}/${env.SERVICE}:${getVersion('-d')}"
sh "docker push ${env.DOCKER_REGISTRY}/${env.SERVICE}:1.0.0"
} }
//Copy tar.gz file to s3 bucket //Copy tar.gz file to s3 bucket