mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 06:45:49 +00:00
Added Jenkinsfile
This commit is contained in:
parent
fb19855733
commit
bc67a9733e
1 changed files with 31 additions and 27 deletions
58
Jenkinsfile
vendored
58
Jenkinsfile
vendored
|
@ -1,29 +1,33 @@
|
|||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'mvn spring-javaformat:apply'
|
||||
sh './mvnw package'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh 'mvn clean test'
|
||||
}
|
||||
}
|
||||
stage('Package') {
|
||||
steps {
|
||||
echo 'Package'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
echo 'Deploying'
|
||||
}
|
||||
}
|
||||
agent any
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh 'mvn spring-javaformat:apply'
|
||||
sh './mvnw package'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh 'mvn clean test'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Package') {
|
||||
steps {
|
||||
echo 'Package'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
echo 'Deploying'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue