Mail Attempt

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

55
Jenkinsfile vendored
View file

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