Show non-SCM changes in Jenkins emails?

15 views
Skip to first unread message

Dunnigan, Terrence J

unread,
Feb 25, 2016, 4:21:04 PM2/25/16
to jenkins...@googlegroups.com

Hi all,

 

Is there a way to show non-SCM related changes in Jenkins emails? I’m thinking of examples like this:

 

-          Changed job configuration

o   Build step

o   Node

o   etc

-          Wiped workspace

 

Our emails are sent by the Email-Ext plugin and we already use the ${CHANGES} content token. Sometimes our builds are fixed by wiping the workspace or changing the job configuration, and not SCM changes. In those cases, the email merely says “No changes”

 

Is there an existing macro that contains this type of information?

 

Thanks,

 

Terry

 

Slide

unread,
Feb 25, 2016, 4:41:51 PM2/25/16
to jenkins...@googlegroups.com
No, there is not any existing macro that does that, but if you used a groovy template, you could do pretty much anything you wanted to with the Jenkins api. You can also still use the existing content tokens with a slightly different syntax. ${CHANGES} -> CHANGES(). If there are parameters, you pass them to the "method" as named parameters: ENV(var: 'JENKINS_HOME').

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8ee1bf33a6e641d4a2cceb468942353c%40XCH15-05-11.nw.nos.boeing.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages