Here's another function, with multiple "to"
def sendApprovalTransitionEmail(deploymentEnv) {
emailext body: "This build is now
paused and awaiting transition by QA. Click
here ${env.BUILD_URL} to approve this builds deployment to $deploymentEnv.",
subject: "Build is paused - awaiting QA
Here's a sample function we call in our pipeline
def processTestFailure() {
junit "**/build/test-results/**/*.xml"
emailext body: "You broke the
build It appears that ${env.BUILD_URL} tests
are failing (${currentBuild.result}). Change sets:${changelist()}${testStatuses()}", recipientPro
For my "build failed" emails, I'd like to send an email from my Jenkins
Declarative Pipeline to the developers group but also to a fixed list of
recipients. Under the Pipeline documentation (
https://jenkins.io/doc/pipeline/steps/email-ext/), I see a class for
"recipients", which states that it inc