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.
On Wed Dec 31 2014 at 2:17:22 AM <[email protected]> wrote: > 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 > > -- > 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/329ed68a-a1ca-40a4-a819-eaacc50c060e%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/329ed68a-a1ca-40a4-a819-eaacc50c060e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAPiUgVfWN8Ng%2BxOzZvBteHJ2B-MzpakTQFaKsO1DCZyv-vrOQQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
