mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
Update Jenkinsfile
This commit is contained in:
parent
e852f854c6
commit
6b906970aa
1 changed files with 1 additions and 42 deletions
43
Jenkinsfile
vendored
43
Jenkinsfile
vendored
|
@ -1,51 +1,10 @@
|
||||||
#!/usr/bin/env groovy
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh './mvnw clean'
|
sh 'echo "This is the development branch"'
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Test') {
|
|
||||||
steps {
|
|
||||||
sh './mvnw test'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Package') {
|
|
||||||
steps {
|
|
||||||
sh './mvnw package'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Deploy') {
|
|
||||||
when {
|
|
||||||
expression {
|
|
||||||
currentBuild.result == null || currentBuild.result == 'SUCCESS'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
echo "DEPLOY!"
|
|
||||||
/* sh './mvnw deploy' */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
echo 'One way or another, I have finished'
|
|
||||||
/* deleteDir() /* clean up our workspace */
|
|
||||||
}
|
|
||||||
success {
|
|
||||||
echo 'I succeeeded!'
|
|
||||||
}
|
|
||||||
unstable {
|
|
||||||
echo 'I am unstable :/'
|
|
||||||
}
|
|
||||||
failure {
|
|
||||||
echo 'I failed :('
|
|
||||||
}
|
|
||||||
changed {
|
|
||||||
echo 'Things were different before...'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue