| when catching a build failure and sending an email via: catch (err) { node ('Client-Slave'){ echo "Failed: $ {err} " currentBuild.result = 'FAILURE' step([$class: 'Mailer', recipients: 'exa...@example.com, recip...@example.com']) } } the mail is send as: [...] X-Jenkins-Job: example_pipeline X-Jenkins-Result: FAILURE https://jenkins.example.com/blue/organizations/jenkins/example_pipeline/detail/example_pipeline/21/------------------------------------------ [...truncated 25 lines...] [...] it would be better to send it with a line break after the url, as the ----- are treated as part of the url by some mail clients: [...] X-Jenkins-Job: example_pipeline X-Jenkins-Result: FAILURE https://jenkins.example.com/blue/organizations/jenkins/example_pipeline/detail/example_pipeline/21/ ------------------------------------------ [...truncated 25 lines...] [...] |