build en jenkinsfile

This commit is contained in:
Natalia Villegas 2018-12-16 16:46:53 -03:00
parent e0456812f3
commit 2554a98110

18
Jenkinsfile vendored
View file

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