in jenkins-pipeline-shared-libraries/vars/mailer.groovy [22:34]
def sendEmail_unstablePR(String additionalSubject = null ) {
emailext(
subject: "${additionalSubject?.trim() || additionalSubject?.trim() != null ? additionalSubject?.trim() : 'PR'} #$ghprbPullId of $ghprbGhRepository: $ghprbPullTitle was unstable",
body: """
Pull request #$ghprbPullId of $ghprbGhRepository: $ghprbPullTitle was UNSTABLE
Build log: ${BUILD_URL}consoleText
Failed tests \${TEST_COUNTS,var=\"fail\"}: ${BUILD_URL}testReport
(IMPORTANT: For visiting the links you need to have access to Red Hat VPN)
***********************************************************************************************************************************************************
\${FAILED_TESTS}
""",
recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']])
}