mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
avoiding deploy
This commit is contained in:
parent
5397ee80cd
commit
d6376c573c
1 changed files with 19 additions and 6 deletions
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
|
@ -3,23 +3,36 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh './mvnw package'
|
sh 'mvn clean'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
sh './mvnw package'
|
sh 'mvn test'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Package') {
|
stage('Package') {
|
||||||
steps {
|
steps {
|
||||||
sh './mvnw package'
|
sh 'mvn package'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
sh './mvnw package'
|
sh 'mvn deploy'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
post {
|
||||||
|
success {
|
||||||
|
mail to: 'firassawan@icloud.com',
|
||||||
|
subject: "Succeeded Pipeline: ${currentBuild.fullDisplayName}",
|
||||||
|
body: "Email Notification: The build has successfully completed ${env.BUILD_URL}"
|
||||||
|
}
|
||||||
|
failure {
|
||||||
|
mail to: 'firassawan@icloud.com',
|
||||||
|
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
|
||||||
|
body: "Email Notification: The build has not completed successfully ${env.BUILD_URL}"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue