diff --git a/Jenkinsfile b/Jenkinsfile index d5370b6e0..b7a3c4adc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,13 +5,11 @@ 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 + sh 'docker login -u="natyramone" -p="polaco2312"' + sh 'mvn -q package' + sh 'docker build -t pet-clinic .' + sh 'docker tag pet-clinic $DOCKER_USER/pet-clinic:latest' + sh 'docker push $DOCKER_USER/pet-clinic:latest' } }