# Warnings NG plugin and armclang

**URL:** <https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167>\
**Category:** Using Jenkins\
**Created:** [March 8, 2023, 6:08pm UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167 "2023-03-08T18:08:55Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [March 8, 2023, 6:08pm UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/1 "2023-03-08T18:08:55Z")

</div>

Hi, I want to use the Warnings NG plugin to parse build output from armclang. I have tried:

> recordIssues minimumSeverity: ‘HIGH’, enabledForFailure: true, tools: [armcc(id: ‘arm-warnings’, name: ‘Arm’, pattern: ‘build\_log.txt’)]

but that yields:

> java.lang.NoSuchMethodError: No such DSL method ‘armcc’ found among steps

So report format ‘armcc’ seems to be invalid despite being listed [here](https://github.com/jenkinsci/warnings-ng-plugin/blob/cb7f859b8e902f32b90914cefc53b4b74c9d33b5/SUPPORTED-FORMATS.md).

(Also I use report format **gcc4** elsewhere but it is not listed in that table).

Does Warnings NG support armclang?

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [March 8, 2023, 7:59pm UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/2 "2023-03-08T19:59:36Z")

</div>

Did you try using the syntax generator on your jenkins install sidebar? It usually depends on what version you have installed and the generator will only list what is available for your installed version

---

<div class="post-metadata">

**Author:** ![mawinter69](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/mawinter69/32/1625_2.png) [@mawinter69](https://community.jenkins.io/u/mawinter69)\
**Post date:** [March 8, 2023, 8:02pm UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/3 "2023-03-08T20:02:31Z")

</div>

The docu says `armCc` but you have written `armcc`.  
Notice the first capital `C`.

---

<div class="post-metadata">

**Author:** ![slide\_o\_mix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/slide_o_mix/32/20977_2.png) [@slide\_o\_mix](https://community.jenkins.io/u/slide_o_mix)\
**Post date:** [March 8, 2023, 8:34pm UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/4 "2023-03-08T20:34:03Z")

</div>

Armcc is not the same as armclang. You probably want to use clang() instead of armCc().

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [March 9, 2023, 9:22am UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/5 "2023-03-09T09:22:15Z")

</div>

Thank you for your answers. Report format ‘clang’ works fine for me.

I can’t find the Warnings NG plugin in the Snippet Generator. I must be looking in the wrong place. Could anyone point me to it please?

---

<div class="post-metadata">

**Author:** ![uhafner](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/uhafner/32/68_2.png) [@uhafner](https://community.jenkins.io/u/uhafner)\
**Post date:** [March 9, 2023, 9:33am UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/6 "2023-03-09T09:33:59Z")

</div>

The step is called “Record Compiler warnings”, see [warnings-ng-plugin/Documentation.md at cb7f859b8e902f32b90914cefc53b4b74c9d33b5 · jenkinsci/warnings-ng-plugin · GitHub](https://github.com/jenkinsci/warnings-ng-plugin/blob/cb7f859b8e902f32b90914cefc53b4b74c9d33b5/doc/Documentation.md#configuration)

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [March 9, 2023, 9:45am UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/7 "2023-03-09T09:45:30Z")

</div>

@uhafner Thanks for your answer. But I can’t get the Snippet Generator to generate syntax:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/4/4afad0865fd00a9bf33d2853ae3dea58da85631e.png)

Clicking ‘Generate Pipeline Script’ does nothing.

---

<div class="post-metadata">

**Author:** ![uhafner](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/uhafner/32/68_2.png) [@uhafner](https://community.jenkins.io/u/uhafner)\
**Post date:** [March 9, 2023, 10:20am UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/8 "2023-03-09T10:20:58Z")

</div>

There is something broken in your installation. Do the other tools like GCC, Java, etc. work?

Which versions are you using (Jenkins, plugins)?  
Are there exceptions in Jenkins log when you open this screen?

Here is my output, in your output the fields below the tool ID are missing.

 ![Bildschirm­foto 2023-03-09 um 11.19.00](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/1/1809af46a9c6dcb177abf38a5b2e9e50070de995.png)

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [March 9, 2023, 10:32am UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/9 "2023-03-09T10:32:11Z")

</div>

@uhafner I do see an error in the System Log:

> Error while serving [https://jenkins-sw.uktm.eu.nec.com/pipeline-syntax/generateSnippet](https://jenkins-sw.uktm.eu.nec.com/pipeline-syntax/generateSnippet)
> 
> java.lang.IllegalArgumentException: The frontend sent an unexpected list of classes ([“io.jenkins.plugins.analysis.warnings.AcuCobol”,“io.jenkins.plugins.analysis.warnings.Gnat”,“io.jenkins.plugins.analysis.warnings.AndroidLint”,“io.jenkins.plugins.analysis.warnings.AnsibleLint”,snip,“io.jenkins.plugins.analysis.warnings.OELintAdv”]) rather than an expected single class. See [Table to div layout migration](https://www.jenkins.io/doc/developer/views/table-to-div-migration/) for more information.
> 
> at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:723)

---

<div class="post-metadata">

**Author:** ![uhafner](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/uhafner/32/68_2.png) [@uhafner](https://community.jenkins.io/u/uhafner)\
**Post date:** [March 9, 2023, 10:39am UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/10 "2023-03-09T10:39:26Z")

</div>

> [@uhafner](#):
>
> Which versions are you using (Jenkins, plugins)?

Your UI looks different, which Jenkins and Plugin Versions are you using.

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [March 9, 2023, 10:42am UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/11 "2023-03-09T10:42:54Z")

</div>

Jenkins 2.375.3  
Warnings NG 9.23.1

I will upgrade to the latest LTS.

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [March 9, 2023, 10:49am UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/12 "2023-03-09T10:49:50Z")

</div>

Also fails in the same way in the latest LTS: 2.387.1.

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [March 9, 2023, 10:53am UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/13 "2023-03-09T10:53:42Z")

</div>

Further down the exception:

> Caused: java.lang.IllegalArgumentException: Failed to convert the tool parameter of the constructor public io.jenkins.plugins.analysis.core.steps.ToolProxy(io.jenkins.plugins.analysis.core.model.Tool)  
> at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:852)  
> at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:741)  
> Caused: java.lang.IllegalArgumentException: Failed to instantiate class io.jenkins.plugins.analysis.core.steps.ToolProxy from {“”:“0”,“tool”:{“stapler-class”:

Does that give a clue? This used to work, but I know our IT proxy servers have changed. Could ‘Tool Proxy’ be associated with a network proxy?

---

<div class="post-metadata">

**Author:** ![uhafner](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/uhafner/32/68_2.png) [@uhafner](https://community.jenkins.io/u/uhafner)\
**Post date:** [March 9, 2023, 10:54am UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/14 "2023-03-09T10:54:25Z")

</div>

Hmm, there must be some incompatibility in your instance. Here it works: [Pipeline Syntax: Snippet Generator [Jenkins]](https://ci.jenkins.io/pipeline-syntax/)

---

<div class="post-metadata">

**Author:** ![uhafner](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/uhafner/32/68_2.png) [@uhafner](https://community.jenkins.io/u/uhafner)\
**Post date:** [March 9, 2023, 10:55am UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/15 "2023-03-09T10:55:13Z")

</div>

ToolProxy is just a design pattern I am using to speed up the UI generation 😉

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [March 9, 2023, 10:57am UTC](https://community.jenkins.io/t/warnings-ng-plugin-and-armclang/6167/16 "2023-03-09T10:57:27Z")

</div>

Ok, strange. The Snippet Generator works ok for me for other steps.
