You must wrap it into tm: see 
https://github.com/jenkinsci/warnings-ng-plugin/blob/master/ui-tests/src/test/java/io/jenkins/plugins/analysis/warnings/SmokeTests.java#L99


> Am 13.04.2021 um 16:17 schrieb jesus fernandez <[email protected]>:
> 
> How can I access those token macros? (sorry if this is a silly question) I 
> have never used them before, I tried to print the value with ```println 
> ${ANALYSIS_ISSUES_COUNT, tool="cppcheck", type="NEW"}``` but I get an 
> unexpected token error
> 
> El viernes, 9 de abril de 2021 a las 14:03:39 UTC+2, [email protected] 
> escribió:
> https://github.com/jenkinsci/warnings-ng-plugin/blob/master/doc/Documentation.md#token-macro-support
>  
> <https://github.com/jenkinsci/warnings-ng-plugin/blob/master/doc/Documentation.md#token-macro-support>
> 
> 
>> Am 09.04.2021 um 13:59 schrieb jesus fernandez <[email protected] 
>> <applewebdata://879A7686-8E9F-438B-8F7E-E56B1F950529>>:
>> 
> 
>> Thanks for replying, any documentation or link to guide me in the right 
>> direction on how to do it? I am quite Junior and have been learning Jenkins 
>> on my own
>> 
>> El viernes, 9 de abril de 2021 a las 13:46:48 UTC+2, [email protected] 
>> <applewebdata://879A7686-8E9F-438B-8F7E-E56B1F950529> escribió:
>> Exporting results from one plugin into another plugin is definitely 
>> possible. You typically have two steps:
>> 1) Export the data from a producer plugin
>> a) using Tokens
>> b) using API methods of the plugin
>> 2) Import the data (or reformat and aggregate it) into a consumer plugin
>> 
>> For step 1 I can say this works for the warnings plugin, it can export the 
>> results of CppCheck either into tokens or into objects (that you can process 
>> using your pipeline). 
>> 
>> I have no idea if the slack plugin is capable of doing step 2 though, but I 
>> would assume that it works in that way...
>> 
>> 
>>> Am 09.04.2021 um 08:39 schrieb jesus fernandez <[email protected] <>>:
>>> 
>> 
>>> I just started using cppcheck, and I was wondering if there is any way to 
>>> access to the report values (for instance number of total errors) and send 
>>> it to slack. I have been searching in the documentation and here in SO but 
>>> I have found nothing, as I just have been using Jenkins for a couple of 
>>> months ( I am a junior dev) I was wondering if somebody know if this is 
>>> possible and could drive me in the right direction.
>>> 
>> 
>>> -- 
>>> 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/d3aee90e-5331-480f-84d7-4df7c3ebcf6fn%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jenkinsci-users/d3aee90e-5331-480f-84d7-4df7c3ebcf6fn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> 
>> 
>> -- 
>> 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] 
>> <applewebdata://879A7686-8E9F-438B-8F7E-E56B1F950529>.
> 
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/abdfdbec-e2cf-4f69-a089-1cb93dcef30en%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-users/abdfdbec-e2cf-4f69-a089-1cb93dcef30en%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/c5ba204c-fa9f-4f6c-800f-69dba9680f87n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/c5ba204c-fa9f-4f6c-800f-69dba9680f87n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/27FB6AD8-66DF-4BC2-A076-8CD00535F39A%40gmail.com.

Reply via email to