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}" message:"${currentBuild.currentResult}:${BUILD_URL}:${env.RECREATE_VOLUME}:${env.CLEAN_OUTPUT_DIRECTORY}:${env.CLEAN_ASSETS}"
) )
} }
step([ if (env.WATCHED_BRANCHES.tokenize(',').contains(branchName)) {
$class: 'Mailer', node('controller') {
notifyEveryUnstableBuild: true, step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients:
sendToIndividuals: true, emailextrecipients([[$class: 'CulpritsRecipientProvider']])
recipients: emailextrecipients([ ])
[$class: 'CulpritsRecipientProvider'], }
[$class: 'RequesterRecipientProvider'] }
])
])
} catch(Exception e) { } catch(Exception e) {
} }
} }

Loading…
Cancel
Save