#!/usr/bin/env groovy
pipeline{
agent {
label 'slave'
}
}
stages {
stage ('Test Email') {
steps {
emailext (
to: 'e-mail@mail.com',
subject: 'subject',
body: 'details',
recipientProviders: [[$class: 'RequesterRecipientProvider']]
)
}
}
}
post {
failure {
mail to: 'e-mail@mail.com',
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
body: "Something is wrong with ${env.BUILD_URL}"
}
}
}
pipeline{
agent {
label 'slave'
}
}
stages {
stage ('Test Email') {
steps {
emailext (
to: 'e-mail@mail.com',
subject: 'subject',
body: 'details',
recipientProviders: [[$class: 'RequesterRecipientProvider']]
)
}
}
}
post {
failure {
mail to: 'e-mail@mail.com',
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
body: "Something is wrong with ${env.BUILD_URL}"
}
}
}
No comments:
Post a Comment