mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
deploy
This commit is contained in:
parent
f7792b2de2
commit
caa537f81e
1 changed files with 2 additions and 5 deletions
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -20,15 +20,12 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps{
|
|
||||||
echo "Branch name: ${env.BRANCH_NAME}"
|
|
||||||
}
|
|
||||||
when {
|
when {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
echo "Merge to master"
|
echo "Branch name: ${env.BRANCH_NAME}"
|
||||||
sh 'git pull'
|
sh './mvnw deploy'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue