Royale-compiler is using the "Editable Email Notification" as a "Post Build 
Action".  We have not customized the email on builds.a.o, but on a non-Apache 
Jenkins instance, I've used that to send just about anything I want.  I've used 
scripts to write to a file and then send the file as the body of the message 
(not as an attachment).

HTH,
-Alex

On 4/11/20, 5:40 AM, "Mick Semb Wever" <m...@apache.org> wrote:

    Have any other projects customised the format of the email body that
    jenkins sends?
    
    Using the emailext plugin, the email content can be defined by a jelly
    script, and there's a few from that plugin to pick from.
    
    See for example
    
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fcassandra%2Fblob%2Ftrunk%2F.jenkins%2FJenkinsfile%23L354&amp;data=02%7C01%7Caharui%40adobe.com%7Cf22a651604134cb184f008d7de157be7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637222056164934047&amp;sdata=DrwwqFCmJkZXf3KrOQupZVi4n7EhEPjlFNZ%2B9puYyvM%3D&amp;reserved=0
    
    I'd like to fix and improve a few things in the default text.jelly
    template. The builds emails for the Cassandra pipeline are pretty
    messy, an example
    
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.apache.org%2Fthread.html%2Fr137dce26f7623146c0c19cc6d5bcc1c801e3e4ba8a5098ffcd3eec4a%2540%253Cbuilds.cassandra.apache.org%253E&amp;data=02%7C01%7Caharui%40adobe.com%7Cf22a651604134cb184f008d7de157be7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637222056164934047&amp;sdata=9FVh0FfEGbA4Usau7wBr7eThkf940J4c9O6ZUwz4rpU%3D&amp;reserved=0
    
    According to the instructions at 
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplugins.jenkins.io%2Femail-ext%2F&amp;data=02%7C01%7Caharui%40adobe.com%7Cf22a651604134cb184f008d7de157be7%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637222056164934047&amp;sdata=bUOSkIuQNnt7KJcpW1zvdyAtSoZtnCE%2FjOen7yKF8Ow%3D&amp;reserved=0
    I need to provide the customised template (jelly or groovy) to the
    jenkins administrator to be placed under
    `$JENKINS_HOME/email-templates/`
    
    Is this approach a possibility? Is there any other solution that's been 
used?
    
    regards,
    Mick
    

Reply via email to