mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 07:45:49 +00:00
Added Jenkinsfile
This commit is contained in:
parent
fb19855733
commit
bc67a9733e
1 changed files with 31 additions and 27 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -7,16 +7,19 @@ pipeline {
|
||||||
sh './mvnw package'
|
sh './mvnw package'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
sh 'mvn clean test'
|
sh 'mvn clean test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Package') {
|
stage('Package') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Package'
|
echo 'Package'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
when {
|
when {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
|
@ -25,5 +28,6 @@ pipeline {
|
||||||
echo 'Deploying'
|
echo 'Deploying'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue