mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Jenkinsfile fixup
This commit is contained in:
parent
78e0131a17
commit
ca0fe24df1
1 changed files with 3 additions and 3 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue