fix jenkisfile

This commit is contained in:
Natalia Villegas 2018-12-16 16:54:17 -03:00
parent 308cfae7b6
commit 56e9f9fb3c

12
Jenkinsfile vendored
View file

@ -5,13 +5,11 @@ pipeline {
stage('Build') { stage('Build') {
steps { steps {
echo 'Building..' echo 'Building..'
docker login -u="natyramone" -p="polaco2312" sh 'docker login -u="natyramone" -p="polaco2312"'
sh 'mvn -q package'
mvn -q package sh 'docker build -t pet-clinic .'
sh 'docker tag pet-clinic $DOCKER_USER/pet-clinic:latest'
docker build -t pet-clinic . sh 'docker push $DOCKER_USER/pet-clinic:latest'
docker tag pet-clinic $DOCKER_USER/pet-clinic:latest
docker push $DOCKER_USER/pet-clinic:latest
} }
} }