mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:25:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
80773dcf0e
commit
732770e625
1 changed files with 7 additions and 2 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -1,4 +1,9 @@
|
|||
pipeline {
|
||||
environment {
|
||||
registry = "sprientera/pet"
|
||||
registryCredential = 'dockerhub_id'
|
||||
dockerImage = ''
|
||||
}
|
||||
agent any
|
||||
stages {
|
||||
stage('Build') {
|
||||
|
@ -10,7 +15,7 @@ pipeline {
|
|||
}
|
||||
stage('Build Docker Image') {
|
||||
when {
|
||||
branch 'master'
|
||||
branch 'main'
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
|
@ -23,7 +28,7 @@ pipeline {
|
|||
}
|
||||
stage('Push Docker Image') {
|
||||
when {
|
||||
branch 'master'
|
||||
branch 'main'
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
|
|
Loading…
Reference in a new issue