mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 06:45: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 {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh './mvnw package'
|
||||
sh 'mvn clean'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh './mvnw package'
|
||||
sh 'mvn test'
|
||||
}
|
||||
}
|
||||
stage('Package') {
|
||||
steps {
|
||||
sh './mvnw package'
|
||||
sh 'mvn package'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
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