notify.groovy 482 字节
Newer Older
Q
quicksilver 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
def notify() {
    if (!currentBuild.resultIsBetterOrEqualTo('SUCCESS')) {
        // Send an email only if the build status has changed from green/unstable to red
        emailext subject: '$DEFAULT_SUBJECT',
        body: '$DEFAULT_CONTENT',
        recipientProviders: [
            [$class: 'DevelopersRecipientProvider'],
            [$class: 'RequesterRecipientProvider']
        ], 
        replyTo: '$DEFAULT_REPLYTO',
        to: '$DEFAULT_RECIPIENTS'
    }
}
return this