I'm a little further on - I've added a call to emailext. Below is declarative
script. But I get error:
An attempt to send an e-mail to empty list of recipients, ignored.
How can I set the recipients list? Do I need another script step?
stages {
stage('build') {
steps {
sh 'python --version'
}
}
}
post {
success {
script: emailext (subject: "STARTED: Job '${env.JOB_NAME}
[${env.BUILD_NUMBER}]'",
body: """<p>STARTED: Job '${env.JOB_NAME}
[${env.BUILD_NUMBER}]':</p>
<p>Check console output at "<a
href='${env.BUILD_URL}'>${env.JOB_NAME} [${env.BUILD_NUMBER}]</a>"</p>""",
recipientProviders: [$class:
'DevelopersRecipientProvider']])
}
}
}
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/957cad53395a40b3ae25463ee92359c3%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.