Fix email notifications and limit to watched branches

main
Brian Herrera 5 years ago
parent 785e22541a
commit 032500ddb9
No known key found for this signature in database
GPG Key ID: FC67BB5F533BAE04

@ -549,15 +549,13 @@ finally {
message:"${currentBuild.currentResult}:${BUILD_URL}:${env.RECREATE_VOLUME}:${env.CLEAN_OUTPUT_DIRECTORY}:${env.CLEAN_ASSETS}"
)
}
step([
$class: 'Mailer',
notifyEveryUnstableBuild: true,
sendToIndividuals: true,
recipients: emailextrecipients([
[$class: 'CulpritsRecipientProvider'],
[$class: 'RequesterRecipientProvider']
])
])
if (env.WATCHED_BRANCHES.tokenize(',').contains(branchName)) {
node('controller') {
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients:
emailextrecipients([[$class: 'CulpritsRecipientProvider']])
])
}
}
} catch(Exception e) {
}
}

Loading…
Cancel
Save