mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
Modify Jenkinsfile check branch name
This commit is contained in:
parent
b8ef21d2e9
commit
c40b588cee
1 changed files with 20 additions and 5 deletions
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
|
@ -1,10 +1,25 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
bat './mvnw package'
|
bat './mvnw package'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
stage('Test') {
|
||||||
|
steps {
|
||||||
|
bat 'mvn test'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Package') {
|
||||||
|
steps {
|
||||||
|
bat 'echo Package...'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy') {
|
||||||
|
steps {
|
||||||
|
bat "echo 'Pulling...' + env.BRANCH_NAME"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue