Jenkinsfile fixup

This commit is contained in:
JustFiesta 2024-05-02 18:40:16 +02:00
parent 78e0131a17
commit ca0fe24df1

6
Jenkinsfile vendored
View file

@ -74,8 +74,8 @@ pipeline {
NEXUS_CREDS = credentials('nexus-cred') NEXUS_CREDS = credentials('nexus-cred')
NEXUS_DOCKER_REPO_MAIN = '34.241.46.54:8084' NEXUS_DOCKER_REPO_MAIN = '34.241.46.54:8084'
} }
stages {
stage('Docker Build (Main)') { stage('Docker Build (Main)') {
when { when {
branch 'main' branch 'main'
} }
@ -106,7 +106,7 @@ pipeline {
sh 'docker push $NEXUS_DOCKER_REPO_MAIN/spring-petclinic:${GIT_COMMIT}' sh 'docker push $NEXUS_DOCKER_REPO_MAIN/spring-petclinic:${GIT_COMMIT}'
} }
} }
}
post { post {
always { always {
cleanWs() cleanWs()