avoiding deploy

This commit is contained in:
Firas Sawan 2020-03-09 18:44:33 -04:00
parent 5397ee80cd
commit d6376c573c

25
Jenkinsfile vendored
View file

@ -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}"
}
}
}