Add build docker image step in Jenkinsfile

This commit is contained in:
JustFiesta 2024-04-29 18:34:42 +02:00
parent 1e1ad4073b
commit 9a40c2c09c

8
Jenkinsfile vendored
View file

@ -25,5 +25,13 @@ pipeline {
archiveArtifacts artifacts: 'build/libs/*.jar' archiveArtifacts artifacts: 'build/libs/*.jar'
} }
} }
stage('Docker Build') {
steps {
echo 'Building docker Image'
sh 'docker build -t $NEXUS_DOCKER_REPO/spring-petclinic:${GIT_COMMIT} .'
}
}
} }
} }