Using token WARNINGS_NEW in pre send email

18 views
Skip to first unread message

kitt...@gmail.com

unread,
Dec 31, 2014, 4:17:19 AM12/31/14
to jenkins...@googlegroups.com
Hi,

I am trying to send an email at the end of the build job only if new warnings appear.

I tried something like:

if (${WARNINGS_NEW}==0) { cancel = true; }

but it is not working.

I notice the script should be written in Groovy language.
So I tried a few (lot of) things but I can't get access to the tokens.

Then I tried to find the files containing the info but I can't find them either.

Any idea?
Thanks

Slide

unread,
Dec 31, 2014, 8:34:44 AM12/31/14
to jenkins...@googlegroups.com
How does WARNINGS_NEW get it's value? You'd want to use pretty much the same code path to get the number of warnings in Groovy.

--
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/329ed68a-a1ca-40a4-a819-eaacc50c060e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

kitt...@gmail.com

unread,
Jan 5, 2015, 3:46:15 AM1/5/15
to jenkins...@googlegroups.com
Hi,

I have no idea how it gets its value. If anyone could help?

Tahnks

Slide

unread,
Jan 6, 2015, 9:16:24 AM1/6/15
to jenkins...@googlegroups.com

I think I can add the ability to use tokens to the present script for the next version.


Reply all
Reply to author
Forward
0 new messages