Mail Attempt

This commit is contained in:
Jessica Allaire 2020-03-30 16:14:16 -04:00
parent 2ca0cd7914
commit ac21f6d5e1

13
Jenkinsfile vendored
View file

@ -4,34 +4,33 @@ pipeline {
stage('Build') { stage('Build') {
steps { steps {
bat './mvnw package' bat './mvnw package'
mail(subject: 'Build Test', body: 'Attempt 1', to: 'jessica.allaire.96@hotmail.com')
} }
} }
stage('Test') { stage('Test') {
steps { steps {
echo 'Testing' echo 'Testing'
} }
} }
stage('Package') { stage('Package') {
steps { steps {
echo 'Package' echo 'Package'
} }
} }
stage('Deploy') { stage('Deploy') {
when { when {
expression { expression {
GIT_BRANCH == 'master' GIT_BRANCH == 'master'
} }
} }
steps { steps {
echo 'Deploy' echo 'Deploy'
} }
} }
}
}
post {
failure {
mail to: 'jessica.allaire.96@hotmail.com',
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
body: "Something is wrong with ${env.BUILD_URL}"
} }
} }