Hi Slide,

I have my warnings plugin place and i thought these token plugins would
extract the info from the Warnings plugin so we can use it the way we want,

Also thought these tokens are currently available as per the document, (it
specifies to use it with the plugin name as below) If i am wrong,
how do i use these tokens? and how do i go about implementing new warnings
as errors,  Could you shed some light on?

https://wiki.jenkins-ci.org/display/JENKINS/Static+Code+Analysis+Plug-ins#tokens

Build Tokens

All plug-in provide several tokens that are available during post build
processing. In order to use these tokens you need to install the latest
release of the token macro
plug-in<https://wiki.jenkins-ci.org/display/JENKINS/Token+Macro+Plugin>.
The following *tokens* are* currently available* (for the plug-in names
CHECKSTYLE, DRY, FINDBUGS, PMD, TASKS,* WARNINGS* and ANALYSIS):

   - *[plug-in name ]_RESULT*: Expands to the build result of a plug-in
   - *[plug-in name ]_COUNT*: Expands to the total number of warnings in a
   build
   - *[plug-in name ]_NEW*: Expands to the total number of new warnings in
   a build
   - *[plug-in name ]_FIXED*: to the total number of fixed warnings in a
   build

Thanks,
Cdev


On Thu, May 8, 2014 at 5:19 PM, Slide <[email protected]> wrote:

> The token macro plugin would need to know about the tokens you are
> mentioning. They would have to be implemented as token macros in some
> plugin. They aren't part of the token macro plugin by default.
>
>
> On Thu, May 8, 2014 at 5:01 PM, C dev <[email protected]> wrote:
>
>> Hi,
>>
>> Currently we are using warnings plugin to list out all the new warnings
>> and results. It looks good,
>> but as the warnings keep increasing we wanted to flag those warnings as
>> errors so they get immediate attention to be fixed.
>>
>> So tried to install the token macro plugin which I thought would list out
>> the tokens as WARNINGS_RESULT,WARNINGS_NEW,WARNINGS_FIXED etc.. so i wrote
>> a post script that checks for new warnings and the old count if greater
>> then mark the build as failure but these token doesnt provide inputs to the
>> script, also there wasnt any option in the GUI where i can specify some
>> configuration/checks for the token macro plugin in Jenkins
>>
>> How exactly should i use this plugin to match my requirement?
>> Any guidance is appreciated.
>>
>> Thanks,
>> Cdev
>>
>> --
>> 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].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Website: http://earl-of-code.com
>
> --
> 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].
> 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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to