Re: How to publish cppcheck results in a pipeline?

2021-03-25 Thread Ullrich Hafner
Yes, this is definitely not XML :-)
This is the stderr of your program! 

2 > cppcheck.xml pipes your stderr to a file. You do not need this part. 

> Am 25.03.2021 um 20:08 schrieb jesus fernandez :
> 
> so it seems like if it basically is writting all the outputs the cmd throws
> 
> El jueves, 25 de marzo de 2021 a las 20:07:20 UTC+1, jesus fernandez escribió:
> the supposely .xml does not have any format, these are the first 5 lines:
> Checking E:\Source\Game\AchievementManager.cpp ...
> Checking E:\Source\Game\AchievementManager.cpp: 
> APP_STEAM;FINAL_RELEASE;_DEBUG...
> Checking E:\Source\Game\AchievementManager.cpp: 
> APP_STEAM;NEED_AOE1DE_ACHIEVEMENT_TEST;_DEBUG...
> Checking E:\Source\Game\AchievementManager.cpp: 
> APP_STEAM;NEED_AOE3DE_ACHIEVEMENT_TEST;_DEBUG...
> Checking E:\Source\Game\AchievementManager.cpp: APP_STEAM;_DEBUG...
> 
> El jueves, 25 de marzo de 2021 a las 19:47:22 UTC+1, ullrich...@gmail.com 
>  escribió:
> If you can’t check on your own if the file contains valid XML can you please 
> show the first 5 lines of the XML file here?
> 
> 
>> Am 25.03.2021 um 19:36 schrieb jesus fernandez >:
>> 
> 
>> I thought the  ```bat'cppcheck "E:/Source" --force — enable=all — 
>> inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'``` command does 
>> genearate a valid xml. is it a matter of missing parameters or a matter of 
>> having to parse the output? in the documentation and the SO link I attached 
>> it is supposed to be done like that... what am I missing here?
>> 
>> El jueves, 25 de marzo de 2021 a las 18:21:38 UTC+1, ullrich...@gmail.com 
>>  escribió:
>> The exception says it is not a valid XML file. Is it a valid XML file? Seems 
>> that there is content before the fir XML tag. Can you open it in an editor 
>> that can validate the XML?
>> 
>> 
>>> Am 25.03.2021 um 17:57 schrieb jesus fernandez >:
>>> 
>> 
>>> Thanks for replying, I have opened and it has 2000 lines of code but I do 
>>> not know if it is valid or not as I have never used cppcheck before, and if 
>>> it is not valid is it because I am not using the right parameters when 
>>> calling cppcheck or how?
>>> 
>>> 
>>> 
>>> El jueves, 25 de marzo de 2021 a las 17:44:44 UTC+1, ullrich...@gmail.com 
>>>  escribió:
>>> It look like your create XML is not valid. Can you please open the XML file 
>>> and check? 
>>> 
>>> 
 Am 25.03.2021 um 17:40 schrieb jesus fernandez >:
 
>>> 
 I am learning about Jenkins on my own, and I wanted to try the cppcheck 
 plugin, I have setup the following sample pipeline:
 ```
 pipeline {
 agent any
 
 stages {
 stage('analysis') {
 steps {
 script{
 bat'cppcheck "E:/Source" --force — enable=all — 
 inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'
 }
 }
 }
 }
 post {
 always {
 // scanForIssues tool: cppCheck(pattern: 'cppcheck.xml')
 publishCppcheck pattern:'cppcheck.xml'
 }
 }
 }
 ```
 
 But I get an error in the post step which I do not know if it is related 
 to my projecto or if I am doing something wrong. I have follow the 
 instructions on this thread [cppcheck][1]but it does not seem to work, 
 wehther I use ```publushCppcheck``` :
 ```
 [Pipeline] { (Declarative: Post Actions)
 [Pipeline] publishCppcheck (hide)
 [Cppcheck] Starting the cppcheck analysis.
 [Cppcheck] Processing 1 files with the pattern 'cppcheck.xml'.
 [Cppcheck] Parsing throws exceptions. javax.xml.bind.UnmarshalException
  - with linked exception:
 [org.xml.sax.SAXParseException; systemId: 
 file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
 columnNumber: 1; El contenido no está permitido en el prólogo.]
 [Cppcheck] java.io.IOException: javax.xml.bind.UnmarshalException
  - with linked exception:
 [org.xml.sax.SAXParseException; systemId: 
 file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
 columnNumber: 1; El contenido no está permitido en el prólogo.]
 at 
 org.jenkinsci.plugins.cppcheck.parser.CppcheckParser.parse(CppcheckParser.java:67)
 at 
 org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:69)
 at 
 org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:24)
 at hudson.FilePath.act(FilePath.java:1164)
 at hudson.FilePath.act(FilePath.java:1147)
 at 
 org.jenkinsci.plugins.cppcheck.CppcheckPublisher.perform(CppcheckPublisher.java:337)
 at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
 at 
 org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
 at 
 org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69

Re: How to publish cppcheck results in a pipeline?

2021-03-25 Thread jesus fernandez
so it seems like if it basically is writting all the outputs the cmd throws

El jueves, 25 de marzo de 2021 a las 20:07:20 UTC+1, jesus fernandez 
escribió:

> the supposely .xml does not have any format, these are the first 5 lines:
> Checking E:\Source\Game\AchievementManager.cpp ...
>
> Checking E:\Source\Game\AchievementManager.cpp: 
> APP_STEAM;FINAL_RELEASE;_DEBUG...
>
> Checking E:\Source\Game\AchievementManager.cpp: 
> APP_STEAM;NEED_AOE1DE_ACHIEVEMENT_TEST;_DEBUG...
>
> Checking E:\Source\Game\AchievementManager.cpp: 
> APP_STEAM;NEED_AOE3DE_ACHIEVEMENT_TEST;_DEBUG...
> Checking E:\Source\Game\AchievementManager.cpp: APP_STEAM;_DEBUG...
>
> El jueves, 25 de marzo de 2021 a las 19:47:22 UTC+1, ullrich...@gmail.com 
> escribió:
>
>> If you can’t check on your own if the file contains valid XML can you 
>> please show the first 5 lines of the XML file here?
>>
>> Am 25.03.2021 um 19:36 schrieb jesus fernandez :
>>
>> I thought the  ```bat'cppcheck "E:/Source" --force — enable=all — 
>> inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'``` command does 
>> genearate a valid xml. is it a matter of missing parameters or a matter of 
>> having to parse the output? in the documentation and the SO link I attached 
>> it is supposed to be done like that... what am I missing here?
>>
>> El jueves, 25 de marzo de 2021 a las 18:21:38 UTC+1, ullrich...@gmail.com 
>> escribió:
>>
>>> The exception says it is not a valid XML file. Is it a valid XML file? 
>>> Seems that there is content before the fir XML tag. Can you open it in an 
>>> editor that can validate the XML?
>>>
>>> Am 25.03.2021 um 17:57 schrieb jesus fernandez :
>>>
>>> Thanks for replying, I have opened and it has 2000 lines of code but I 
>>> do not know if it is valid or not as I have never used cppcheck before, and 
>>> if it is not valid is it because I am not using the right parameters when 
>>> calling cppcheck or how?
>>>
>>>
>>>
>>> El jueves, 25 de marzo de 2021 a las 17:44:44 UTC+1, ullrich...@
>>> gmail.com escribió:
>>>
 It look like your create XML is not valid. Can you please open the XML 
 file and check? 

 Am 25.03.2021 um 17:40 schrieb jesus fernandez >>> >:

 I am learning about Jenkins on my own, and I wanted to try the cppcheck 
 plugin, I have setup the following sample pipeline:
 ```
 pipeline {
 agent any

 stages {
 stage('analysis') {
 steps {
 script{
 bat'cppcheck "E:/Source" --force — enable=all — 
 inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'
 }
 }
 }
 }
 post {
 always {
 // scanForIssues tool: cppCheck(pattern: 'cppcheck.xml')
 publishCppcheck pattern:'cppcheck.xml'
 }
 }
 }
 ```

 But I get an error in the post step which I do not know if it is 
 related to my projecto or if I am doing something wrong. I have follow the 
 instructions on this thread [cppcheck][1]but it does not seem to work, 
 wehther I use ```publushCppcheck``` :
 ```
 [Pipeline] { (Declarative: Post Actions)
 [Pipeline] publishCppcheck (hide)
 [Cppcheck] Starting the cppcheck analysis.
 [Cppcheck] Processing 1 files with the pattern 'cppcheck.xml'.
 [Cppcheck] Parsing throws exceptions. javax.xml.bind.UnmarshalException
  - with linked exception:
 [org.xml.sax.SAXParseException; systemId: 
 file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
 columnNumber: 1; El contenido no está permitido en el prólogo.]
 [Cppcheck] java.io.IOException: javax.xml.bind.UnmarshalException
  - with linked exception:
 [org.xml.sax.SAXParseException; systemId: 
 file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
 columnNumber: 1; El contenido no está permitido en el prólogo.]
 at 
 org.jenkinsci.plugins.cppcheck.parser.CppcheckParser.parse(CppcheckParser.java:67)
 at 
 org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:69)
 at 
 org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:24)
 at hudson.FilePath.act(FilePath.java:1164)
 at hudson.FilePath.act(FilePath.java:1147)
 at 
 org.jenkinsci.plugins.cppcheck.CppcheckPublisher.perform(CppcheckPublisher.java:337)
 at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
 at 
 org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
 at 
 org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
 at 
 org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
 at java.util.concurrent.Futu

Re: How to publish cppcheck results in a pipeline?

2021-03-25 Thread jesus fernandez
the supposely .xml does not have any format, these are the first 5 lines:
Checking E:\Source\Game\AchievementManager.cpp ...
Checking E:\Source\Game\AchievementManager.cpp: 
APP_STEAM;FINAL_RELEASE;_DEBUG...
Checking E:\Source\Game\AchievementManager.cpp: 
APP_STEAM;NEED_AOE1DE_ACHIEVEMENT_TEST;_DEBUG...
Checking E:\Source\Game\AchievementManager.cpp: 
APP_STEAM;NEED_AOE3DE_ACHIEVEMENT_TEST;_DEBUG...
Checking E:\Source\Game\AchievementManager.cpp: APP_STEAM;_DEBUG...

El jueves, 25 de marzo de 2021 a las 19:47:22 UTC+1, ullrich...@gmail.com 
escribió:

> If you can’t check on your own if the file contains valid XML can you 
> please show the first 5 lines of the XML file here?
>
> Am 25.03.2021 um 19:36 schrieb jesus fernandez :
>
> I thought the  ```bat'cppcheck "E:/Source" --force — enable=all — 
> inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'``` command does 
> genearate a valid xml. is it a matter of missing parameters or a matter of 
> having to parse the output? in the documentation and the SO link I attached 
> it is supposed to be done like that... what am I missing here?
>
> El jueves, 25 de marzo de 2021 a las 18:21:38 UTC+1, ullrich...@gmail.com 
> escribió:
>
>> The exception says it is not a valid XML file. Is it a valid XML file? 
>> Seems that there is content before the fir XML tag. Can you open it in an 
>> editor that can validate the XML?
>>
>> Am 25.03.2021 um 17:57 schrieb jesus fernandez :
>>
>> Thanks for replying, I have opened and it has 2000 lines of code but I do 
>> not know if it is valid or not as I have never used cppcheck before, and if 
>> it is not valid is it because I am not using the right parameters when 
>> calling cppcheck or how?
>>
>>
>>
>> El jueves, 25 de marzo de 2021 a las 17:44:44 UTC+1, ullrich...@gmail.com 
>> escribió:
>>
>>> It look like your create XML is not valid. Can you please open the XML 
>>> file and check? 
>>>
>>> Am 25.03.2021 um 17:40 schrieb jesus fernandez :
>>>
>>> I am learning about Jenkins on my own, and I wanted to try the cppcheck 
>>> plugin, I have setup the following sample pipeline:
>>> ```
>>> pipeline {
>>> agent any
>>>
>>> stages {
>>> stage('analysis') {
>>> steps {
>>> script{
>>> bat'cppcheck "E:/Source" --force — enable=all — 
>>> inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'
>>> }
>>> }
>>> }
>>> }
>>> post {
>>> always {
>>> // scanForIssues tool: cppCheck(pattern: 'cppcheck.xml')
>>> publishCppcheck pattern:'cppcheck.xml'
>>> }
>>> }
>>> }
>>> ```
>>>
>>> But I get an error in the post step which I do not know if it is related 
>>> to my projecto or if I am doing something wrong. I have follow the 
>>> instructions on this thread [cppcheck][1]but it does not seem to work, 
>>> wehther I use ```publushCppcheck``` :
>>> ```
>>> [Pipeline] { (Declarative: Post Actions)
>>> [Pipeline] publishCppcheck (hide)
>>> [Cppcheck] Starting the cppcheck analysis.
>>> [Cppcheck] Processing 1 files with the pattern 'cppcheck.xml'.
>>> [Cppcheck] Parsing throws exceptions. javax.xml.bind.UnmarshalException
>>>  - with linked exception:
>>> [org.xml.sax.SAXParseException; systemId: 
>>> file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
>>> columnNumber: 1; El contenido no está permitido en el prólogo.]
>>> [Cppcheck] java.io.IOException: javax.xml.bind.UnmarshalException
>>>  - with linked exception:
>>> [org.xml.sax.SAXParseException; systemId: 
>>> file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
>>> columnNumber: 1; El contenido no está permitido en el prólogo.]
>>> at 
>>> org.jenkinsci.plugins.cppcheck.parser.CppcheckParser.parse(CppcheckParser.java:67)
>>> at 
>>> org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:69)
>>> at 
>>> org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:24)
>>> at hudson.FilePath.act(FilePath.java:1164)
>>> at hudson.FilePath.act(FilePath.java:1147)
>>> at 
>>> org.jenkinsci.plugins.cppcheck.CppcheckPublisher.perform(CppcheckPublisher.java:337)
>>> at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
>>> at 
>>> org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
>>> at 
>>> org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
>>> at 
>>> org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
>>> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>>> at java.util.concurrent.FutureTask.run(Unknown Source)
>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>>> at java.lang.Thread.run(Unknown Source)
>>> Caused by: javax.xml.bind.UnmarshalException
>>> ```
>>>
>>> or ```sc

Re: How to publish cppcheck results in a pipeline?

2021-03-25 Thread Ullrich Hafner
If you can’t check on your own if the file contains valid XML can you please 
show the first 5 lines of the XML file here?

> Am 25.03.2021 um 19:36 schrieb jesus fernandez :
> 
> I thought the  ```bat'cppcheck "E:/Source" --force — enable=all — 
> inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'``` command does 
> genearate a valid xml. is it a matter of missing parameters or a matter of 
> having to parse the output? in the documentation and the SO link I attached 
> it is supposed to be done like that... what am I missing here?
> 
> El jueves, 25 de marzo de 2021 a las 18:21:38 UTC+1, ullrich...@gmail.com 
> escribió:
> The exception says it is not a valid XML file. Is it a valid XML file? Seems 
> that there is content before the fir XML tag. Can you open it in an editor 
> that can validate the XML?
> 
> 
>> Am 25.03.2021 um 17:57 schrieb jesus fernandez > >:
>> 
> 
>> Thanks for replying, I have opened and it has 2000 lines of code but I do 
>> not know if it is valid or not as I have never used cppcheck before, and if 
>> it is not valid is it because I am not using the right parameters when 
>> calling cppcheck or how?
>> 
>> 
>> 
>> El jueves, 25 de marzo de 2021 a las 17:44:44 UTC+1, ullrich...@gmail.com 
>>  escribió:
>> It look like your create XML is not valid. Can you please open the XML file 
>> and check? 
>> 
>> 
>>> Am 25.03.2021 um 17:40 schrieb jesus fernandez >:
>>> 
>> 
>>> I am learning about Jenkins on my own, and I wanted to try the cppcheck 
>>> plugin, I have setup the following sample pipeline:
>>> ```
>>> pipeline {
>>> agent any
>>> 
>>> stages {
>>> stage('analysis') {
>>> steps {
>>> script{
>>> bat'cppcheck "E:/Source" --force — enable=all — 
>>> inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'
>>> }
>>> }
>>> }
>>> }
>>> post {
>>> always {
>>> // scanForIssues tool: cppCheck(pattern: 'cppcheck.xml')
>>> publishCppcheck pattern:'cppcheck.xml'
>>> }
>>> }
>>> }
>>> ```
>>> 
>>> But I get an error in the post step which I do not know if it is related to 
>>> my projecto or if I am doing something wrong. I have follow the 
>>> instructions on this thread [cppcheck][1]but it does not seem to work, 
>>> wehther I use ```publushCppcheck``` :
>>> ```
>>> [Pipeline] { (Declarative: Post Actions)
>>> [Pipeline] publishCppcheck (hide)
>>> [Cppcheck] Starting the cppcheck analysis.
>>> [Cppcheck] Processing 1 files with the pattern 'cppcheck.xml'.
>>> [Cppcheck] Parsing throws exceptions. javax.xml.bind.UnmarshalException
>>>  - with linked exception:
>>> [org.xml.sax.SAXParseException; systemId: 
>>> file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
>>> columnNumber: 1; El contenido no está permitido en el prólogo.]
>>> [Cppcheck] java.io.IOException: javax.xml.bind.UnmarshalException
>>>  - with linked exception:
>>> [org.xml.sax.SAXParseException; systemId: 
>>> file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
>>> columnNumber: 1; El contenido no está permitido en el prólogo.]
>>> at 
>>> org.jenkinsci.plugins.cppcheck.parser.CppcheckParser.parse(CppcheckParser.java:67)
>>> at 
>>> org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:69)
>>> at 
>>> org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:24)
>>> at hudson.FilePath.act(FilePath.java:1164)
>>> at hudson.FilePath.act(FilePath.java:1147)
>>> at 
>>> org.jenkinsci.plugins.cppcheck.CppcheckPublisher.perform(CppcheckPublisher.java:337)
>>> at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
>>> at 
>>> org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
>>> at 
>>> org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
>>> at 
>>> org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
>>> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>>> at java.util.concurrent.FutureTask.run(Unknown Source)
>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>>> at java.lang.Thread.run(Unknown Source)
>>> Caused by: javax.xml.bind.UnmarshalException
>>> ```
>>> 
>>> or ```scanforIssues``` from warnings ng plugin::
>>> ```
>>> [Pipeline] { (Declarative: Post Actions)
>>> [Pipeline] scanForIssues
>>> [CPPCheck] [-ERROR-] Parsing of file 
>>> 'C:\Users\anton\.jenkins\workspace\JOB4\cppcheck.xml' failed due to an 
>>> exception:
>>> [CPPCheck] [-ERROR-] com.ctc.wstx.exc.WstxUnexpectedCharException: 
>>> Unexpected character 'C' (code 67) in prolog; expected '<'
>>>  at [row,col {unknown-source}]: [1,1]
>>> [CPPCheck] [-ERROR-]  at [row,col {unknown-source}]: [1,1]
>>> [CPPCheck] [-ERROR-]  at 

Test Results Aggregator error message

2021-03-25 Thread webde...@gmail.com
Hey, all,

Found this error in the System Log and I'm unsure how to resolve. This is a 
follow-up to this issue I mentioned earlier:

https://groups.google.com/u/1/g/jenkinsci-users/c/kNbAmi85ZI8

Error Message: 

falling back to default instantiation 
com.jenkins.testresultsaggregator.data.Data 
{"groupName":"","jobs":{"jobName":"Run_NYL_SS_Tests","jobFriendlyName":""}} 
java.lang.NullPointerException at 
hudson.model.Descriptor$NewInstanceBindInterceptor.onConvert(Descriptor.java:675)
 
at 
org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:621) 
at 
org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:717) 
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at 
org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:787) at 
org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83) at 
org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678) 
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at 
org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at 
hudson.model.Descriptor.newInstance(Descriptor.java:598) at 
hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:1075) at 
hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:1037) at 
hudson.util.DescribableList.rebuildHetero(DescribableList.java:208) at 
hudson.model.Project.submit(Project.java:231) at 
hudson.model.Job.doConfigSubmit(Job.java:1335) at 
hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:770) at 
java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source) at 
org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) at 
org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408) at 
org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212) at 
org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36)
 
at 
org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48)
 
at 
org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26)
 
at 
org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145) 
at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:536) at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) 
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766) at 
org.kohsuke.stapler.Stapler.invoke(Stapler.java:898) at 
org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:281) at 
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) 
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766) at 
org.kohsuke.stapler.Stapler.invoke(Stapler.java:898) at 
org.kohsuke.stapler.Stapler.invoke(Stapler.java:694) at 
org.kohsuke.stapler.Stapler.service(Stapler.java:240) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763) at 
org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1633)
 
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) 
at 
org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:248)
 
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) 
at 
jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76) 
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) 
at 
jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:129)
 
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) 
at 
io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
 
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) 
at 
io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:60)
 
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) 
at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125) at 
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at 
hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157) at 
org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at 
org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
 
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:153) at 
org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) at 
org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1609)
 
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) 
at 
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
 
at 
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) 
at 
jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
 
at 

Re: How to publish cppcheck results in a pipeline?

2021-03-25 Thread jesus fernandez
I thought the  ```bat'cppcheck "E:/Source" --force — enable=all — 
inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'``` command does 
genearate a valid xml. is it a matter of missing parameters or a matter of 
having to parse the output? in the documentation and the SO link I attached 
it is supposed to be done like that... what am I missing here?

El jueves, 25 de marzo de 2021 a las 18:21:38 UTC+1, ullrich...@gmail.com 
escribió:

> The exception says it is not a valid XML file. Is it a valid XML file? 
> Seems that there is content before the fir XML tag. Can you open it in an 
> editor that can validate the XML?
>
> Am 25.03.2021 um 17:57 schrieb jesus fernandez :
>
> Thanks for replying, I have opened and it has 2000 lines of code but I do 
> not know if it is valid or not as I have never used cppcheck before, and if 
> it is not valid is it because I am not using the right parameters when 
> calling cppcheck or how?
>
>
>
> El jueves, 25 de marzo de 2021 a las 17:44:44 UTC+1, ullrich...@gmail.com 
> escribió:
>
>> It look like your create XML is not valid. Can you please open the XML 
>> file and check? 
>>
>> Am 25.03.2021 um 17:40 schrieb jesus fernandez :
>>
>> I am learning about Jenkins on my own, and I wanted to try the cppcheck 
>> plugin, I have setup the following sample pipeline:
>> ```
>> pipeline {
>> agent any
>>
>> stages {
>> stage('analysis') {
>> steps {
>> script{
>> bat'cppcheck "E:/Source" --force — enable=all — 
>> inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'
>> }
>> }
>> }
>> }
>> post {
>> always {
>> // scanForIssues tool: cppCheck(pattern: 'cppcheck.xml')
>> publishCppcheck pattern:'cppcheck.xml'
>> }
>> }
>> }
>> ```
>>
>> But I get an error in the post step which I do not know if it is related 
>> to my projecto or if I am doing something wrong. I have follow the 
>> instructions on this thread [cppcheck][1]but it does not seem to work, 
>> wehther I use ```publushCppcheck``` :
>> ```
>> [Pipeline] { (Declarative: Post Actions)
>> [Pipeline] publishCppcheck (hide)
>> [Cppcheck] Starting the cppcheck analysis.
>> [Cppcheck] Processing 1 files with the pattern 'cppcheck.xml'.
>> [Cppcheck] Parsing throws exceptions. javax.xml.bind.UnmarshalException
>>  - with linked exception:
>> [org.xml.sax.SAXParseException; systemId: 
>> file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
>> columnNumber: 1; El contenido no está permitido en el prólogo.]
>> [Cppcheck] java.io.IOException: javax.xml.bind.UnmarshalException
>>  - with linked exception:
>> [org.xml.sax.SAXParseException; systemId: 
>> file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
>> columnNumber: 1; El contenido no está permitido en el prólogo.]
>> at 
>> org.jenkinsci.plugins.cppcheck.parser.CppcheckParser.parse(CppcheckParser.java:67)
>> at 
>> org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:69)
>> at 
>> org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:24)
>> at hudson.FilePath.act(FilePath.java:1164)
>> at hudson.FilePath.act(FilePath.java:1147)
>> at 
>> org.jenkinsci.plugins.cppcheck.CppcheckPublisher.perform(CppcheckPublisher.java:337)
>> at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
>> at 
>> org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
>> at 
>> org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
>> at 
>> org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>> at java.util.concurrent.FutureTask.run(Unknown Source)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>> at java.lang.Thread.run(Unknown Source)
>> Caused by: javax.xml.bind.UnmarshalException
>> ```
>>
>> or ```scanforIssues``` from warnings ng plugin::
>> ```
>> [Pipeline] { (Declarative: Post Actions)
>> [Pipeline] scanForIssues
>> [CPPCheck] [-ERROR-] Parsing of file 
>> 'C:\Users\anton\.jenkins\workspace\JOB4\cppcheck.xml' failed due to an 
>> exception:
>> [CPPCheck] [-ERROR-] com.ctc.wstx.exc.WstxUnexpectedCharException: 
>> Unexpected character 'C' (code 67) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>> [CPPCheck] [-ERROR-]  at [row,col {unknown-source}]: [1,1]
>> [CPPCheck] [-ERROR-]  at 
>> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)
>> [CPPCheck] [-ERROR-]  at 
>> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047)
>> [CPPCheck] [-ERROR-]  at 
>> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>> [CPPCheck] [-ERROR-]  at 
>> se.bjurr.viola

Re: How to publish cppcheck results in a pipeline?

2021-03-25 Thread Fabian Cenedese


>>Thanks for replying, I have opened and it has 2000 lines of code but I do not 
>>know if it is valid or not as I have never used cppcheck before, and if it is 
>>not valid is it because I am not using the right parameters when calling 
>>cppcheck or how?
>>
>>bat'cppcheck "E:/Source" --force — enable=all — 
>> inconclusive — xml âxml — xml-version=2 . 2 > cppcheck.xml'

You need the output of channel 2 so you need to write 2> , leave out the space.

bye  Fabi

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/20210325183030.3E7B84516B19%40macserver.private.


Re: How to publish cppcheck results in a pipeline?

2021-03-25 Thread Ullrich Hafner
The exception says it is not a valid XML file. Is it a valid XML file? Seems 
that there is content before the fir XML tag. Can you open it in an editor that 
can validate the XML?

> Am 25.03.2021 um 17:57 schrieb jesus fernandez :
> 
> Thanks for replying, I have opened and it has 2000 lines of code but I do not 
> know if it is valid or not as I have never used cppcheck before, and if it is 
> not valid is it because I am not using the right parameters when calling 
> cppcheck or how?
> 
> 
> 
> El jueves, 25 de marzo de 2021 a las 17:44:44 UTC+1, ullrich...@gmail.com 
> escribió:
> It look like your create XML is not valid. Can you please open the XML file 
> and check? 
> 
> 
>> Am 25.03.2021 um 17:40 schrieb jesus fernandez > >:
>> 
> 
>> I am learning about Jenkins on my own, and I wanted to try the cppcheck 
>> plugin, I have setup the following sample pipeline:
>> ```
>> pipeline {
>> agent any
>> 
>> stages {
>> stage('analysis') {
>> steps {
>> script{
>> bat'cppcheck "E:/Source" --force — enable=all — 
>> inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'
>> }
>> }
>> }
>> }
>> post {
>> always {
>> // scanForIssues tool: cppCheck(pattern: 'cppcheck.xml')
>> publishCppcheck pattern:'cppcheck.xml'
>> }
>> }
>> }
>> ```
>> 
>> But I get an error in the post step which I do not know if it is related to 
>> my projecto or if I am doing something wrong. I have follow the instructions 
>> on this thread [cppcheck][1]but it does not seem to work, wehther I use 
>> ```publushCppcheck``` :
>> ```
>> [Pipeline] { (Declarative: Post Actions)
>> [Pipeline] publishCppcheck (hide)
>> [Cppcheck] Starting the cppcheck analysis.
>> [Cppcheck] Processing 1 files with the pattern 'cppcheck.xml'.
>> [Cppcheck] Parsing throws exceptions. javax.xml.bind.UnmarshalException
>>  - with linked exception:
>> [org.xml.sax.SAXParseException; systemId: 
>> file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
>> columnNumber: 1; El contenido no está permitido en el prólogo.]
>> [Cppcheck] java.io.IOException: javax.xml.bind.UnmarshalException
>>  - with linked exception:
>> [org.xml.sax.SAXParseException; systemId: 
>> file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
>> columnNumber: 1; El contenido no está permitido en el prólogo.]
>> at 
>> org.jenkinsci.plugins.cppcheck.parser.CppcheckParser.parse(CppcheckParser.java:67)
>> at 
>> org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:69)
>> at 
>> org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:24)
>> at hudson.FilePath.act(FilePath.java:1164)
>> at hudson.FilePath.act(FilePath.java:1147)
>> at 
>> org.jenkinsci.plugins.cppcheck.CppcheckPublisher.perform(CppcheckPublisher.java:337)
>> at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
>> at 
>> org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
>> at 
>> org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
>> at 
>> org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>> at java.util.concurrent.FutureTask.run(Unknown Source)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>> at java.lang.Thread.run(Unknown Source)
>> Caused by: javax.xml.bind.UnmarshalException
>> ```
>> 
>> or ```scanforIssues``` from warnings ng plugin::
>> ```
>> [Pipeline] { (Declarative: Post Actions)
>> [Pipeline] scanForIssues
>> [CPPCheck] [-ERROR-] Parsing of file 
>> 'C:\Users\anton\.jenkins\workspace\JOB4\cppcheck.xml' failed due to an 
>> exception:
>> [CPPCheck] [-ERROR-] com.ctc.wstx.exc.WstxUnexpectedCharException: 
>> Unexpected character 'C' (code 67) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>> [CPPCheck] [-ERROR-]  at [row,col {unknown-source}]: [1,1]
>> [CPPCheck] [-ERROR-]  at 
>> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)
>> [CPPCheck] [-ERROR-]  at 
>> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047)
>> [CPPCheck] [-ERROR-]  at 
>> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>> [CPPCheck] [-ERROR-]  at 
>> se.bjurr.violations.lib.parsers.CPPCheckParser.parseReportOutput(CPPCheckParser.java:43)
>> [CPPCheck] [-ERROR-]  at 
>> edu.hm.hafner.analysis.parser.violations.AbstractViolationAdapter.parse(AbstractViolationAdapter.java:35)
>> [CPPCheck] [-ERROR-]  at 
>> io.jenkins.plugins.analysis.core.model.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:105)
>> [CPPCheck] [-ERROR-]  at 
>> io.jenkins.plugins.analysis.core.model.FilesScanner.scanFiles(

Re: How to publish cppcheck results in a pipeline?

2021-03-25 Thread jesus fernandez
Thanks for replying, I have opened and it has 2000 lines of code but I do 
not know if it is valid or not as I have never used cppcheck before, and if 
it is not valid is it because I am not using the right parameters when 
calling cppcheck or how?



El jueves, 25 de marzo de 2021 a las 17:44:44 UTC+1, ullrich...@gmail.com 
escribió:

> It look like your create XML is not valid. Can you please open the XML 
> file and check? 
>
> Am 25.03.2021 um 17:40 schrieb jesus fernandez :
>
> I am learning about Jenkins on my own, and I wanted to try the cppcheck 
> plugin, I have setup the following sample pipeline:
> ```
> pipeline {
> agent any
>
> stages {
> stage('analysis') {
> steps {
> script{
> bat'cppcheck "E:/Source" --force — enable=all — 
> inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'
> }
> }
> }
> }
> post {
> always {
> // scanForIssues tool: cppCheck(pattern: 'cppcheck.xml')
> publishCppcheck pattern:'cppcheck.xml'
> }
> }
> }
> ```
>
> But I get an error in the post step which I do not know if it is related 
> to my projecto or if I am doing something wrong. I have follow the 
> instructions on this thread [cppcheck][1]but it does not seem to work, 
> wehther I use ```publushCppcheck``` :
> ```
> [Pipeline] { (Declarative: Post Actions)
> [Pipeline] publishCppcheck (hide)
> [Cppcheck] Starting the cppcheck analysis.
> [Cppcheck] Processing 1 files with the pattern 'cppcheck.xml'.
> [Cppcheck] Parsing throws exceptions. javax.xml.bind.UnmarshalException
>  - with linked exception:
> [org.xml.sax.SAXParseException; systemId: 
> file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
> columnNumber: 1; El contenido no está permitido en el prólogo.]
> [Cppcheck] java.io.IOException: javax.xml.bind.UnmarshalException
>  - with linked exception:
> [org.xml.sax.SAXParseException; systemId: 
> file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
> columnNumber: 1; El contenido no está permitido en el prólogo.]
> at 
> org.jenkinsci.plugins.cppcheck.parser.CppcheckParser.parse(CppcheckParser.java:67)
> at 
> org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:69)
> at 
> org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:24)
> at hudson.FilePath.act(FilePath.java:1164)
> at hudson.FilePath.act(FilePath.java:1147)
> at 
> org.jenkinsci.plugins.cppcheck.CppcheckPublisher.perform(CppcheckPublisher.java:337)
> at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
> at 
> org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
> at 
> org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
> at 
> org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: javax.xml.bind.UnmarshalException
> ```
>
> or ```scanforIssues``` from warnings ng plugin::
> ```
> [Pipeline] { (Declarative: Post Actions)
> [Pipeline] scanForIssues
> [CPPCheck] [-ERROR-] Parsing of file 
> 'C:\Users\anton\.jenkins\workspace\JOB4\cppcheck.xml' failed due to an 
> exception:
> [CPPCheck] [-ERROR-] com.ctc.wstx.exc.WstxUnexpectedCharException: 
> Unexpected character 'C' (code 67) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
> [CPPCheck] [-ERROR-]  at [row,col {unknown-source}]: [1,1]
> [CPPCheck] [-ERROR-]  at 
> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)
> [CPPCheck] [-ERROR-]  at 
> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047)
> [CPPCheck] [-ERROR-]  at 
> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
> [CPPCheck] [-ERROR-]  at 
> se.bjurr.violations.lib.parsers.CPPCheckParser.parseReportOutput(CPPCheckParser.java:43)
> [CPPCheck] [-ERROR-]  at 
> edu.hm.hafner.analysis.parser.violations.AbstractViolationAdapter.parse(AbstractViolationAdapter.java:35)
> [CPPCheck] [-ERROR-]  at 
> io.jenkins.plugins.analysis.core.model.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:105)
> [CPPCheck] [-ERROR-]  at 
> io.jenkins.plugins.analysis.core.model.FilesScanner.scanFiles(FilesScanner.java:89)
> [CPPCheck] [-ERROR-]  at 
> io.jenkins.plugins.analysis.core.model.FilesScanner.invoke(FilesScanner.java:72)
> [CPPCheck] [-ERROR-]  at 
> io.jenkins.plugins.analysis.core.model.FilesScanner.invoke(FilesScanner.java:30)
> [CPPCheck] [-ERROR-]  at hudson.FilePath.act(FilePath.java:1164)
> [CPPCheck] [-ERROR-]  at hudson.FilePath.act(FileP

Re: How to publish cppcheck results in a pipeline?

2021-03-25 Thread Ullrich Hafner
It look like your create XML is not valid. Can you please open the XML file and 
check? 

> Am 25.03.2021 um 17:40 schrieb jesus fernandez :
> 
> I am learning about Jenkins on my own, and I wanted to try the cppcheck 
> plugin, I have setup the following sample pipeline:
> ```
> pipeline {
> agent any
> 
> stages {
> stage('analysis') {
> steps {
> script{
> bat'cppcheck "E:/Source" --force — enable=all — 
> inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'
> }
> }
> }
> }
> post {
> always {
> // scanForIssues tool: cppCheck(pattern: 'cppcheck.xml')
> publishCppcheck pattern:'cppcheck.xml'
> }
> }
> }
> ```
> 
> But I get an error in the post step which I do not know if it is related to 
> my projecto or if I am doing something wrong. I have follow the instructions 
> on this thread [cppcheck][1]but it does not seem to work, wehther I use 
> ```publushCppcheck``` :
> ```
> [Pipeline] { (Declarative: Post Actions)
> [Pipeline] publishCppcheck (hide)
> [Cppcheck] Starting the cppcheck analysis.
> [Cppcheck] Processing 1 files with the pattern 'cppcheck.xml'.
> [Cppcheck] Parsing throws exceptions. javax.xml.bind.UnmarshalException
>  - with linked exception:
> [org.xml.sax.SAXParseException; systemId: 
> file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
> columnNumber: 1; El contenido no está permitido en el prólogo.]
> [Cppcheck] java.io.IOException: javax.xml.bind.UnmarshalException
>  - with linked exception:
> [org.xml.sax.SAXParseException; systemId: 
> file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
> columnNumber: 1; El contenido no está permitido en el prólogo.]
> at 
> org.jenkinsci.plugins.cppcheck.parser.CppcheckParser.parse(CppcheckParser.java:67)
> at 
> org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:69)
> at 
> org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:24)
> at hudson.FilePath.act(FilePath.java:1164)
> at hudson.FilePath.act(FilePath.java:1147)
> at 
> org.jenkinsci.plugins.cppcheck.CppcheckPublisher.perform(CppcheckPublisher.java:337)
> at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
> at 
> org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
> at 
> org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
> at 
> org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
> at java.util.concurrent.FutureTask.run(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: javax.xml.bind.UnmarshalException
> ```
> 
> or ```scanforIssues``` from warnings ng plugin::
> ```
> [Pipeline] { (Declarative: Post Actions)
> [Pipeline] scanForIssues
> [CPPCheck] [-ERROR-] Parsing of file 
> 'C:\Users\anton\.jenkins\workspace\JOB4\cppcheck.xml' failed due to an 
> exception:
> [CPPCheck] [-ERROR-] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected 
> character 'C' (code 67) in prolog; expected '<'
>  at [row,col {unknown-source}]: [1,1]
> [CPPCheck] [-ERROR-]  at [row,col {unknown-source}]: [1,1]
> [CPPCheck] [-ERROR-]  at 
> com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)
> [CPPCheck] [-ERROR-]  at 
> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047)
> [CPPCheck] [-ERROR-]  at 
> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
> [CPPCheck] [-ERROR-]  at 
> se.bjurr.violations.lib.parsers.CPPCheckParser.parseReportOutput(CPPCheckParser.java:43)
> [CPPCheck] [-ERROR-]  at 
> edu.hm.hafner.analysis.parser.violations.AbstractViolationAdapter.parse(AbstractViolationAdapter.java:35)
> [CPPCheck] [-ERROR-]  at 
> io.jenkins.plugins.analysis.core.model.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:105)
> [CPPCheck] [-ERROR-]  at 
> io.jenkins.plugins.analysis.core.model.FilesScanner.scanFiles(FilesScanner.java:89)
> [CPPCheck] [-ERROR-]  at 
> io.jenkins.plugins.analysis.core.model.FilesScanner.invoke(FilesScanner.java:72)
> [CPPCheck] [-ERROR-]  at 
> io.jenkins.plugins.analysis.core.model.FilesScanner.invoke(FilesScanner.java:30)
> [CPPCheck] [-ERROR-]  at hudson.FilePath.act(FilePath.java:1164)
> [CPPCheck] [-ERROR-]  at hudson.FilePath.act(FilePath.java:1147)
> [CPPCheck] [-ERROR-]  at 
> io.jenkins.plugins.analysis.core.model.ReportScanningTool.scanInWorkspace(ReportScanningTool.java:152)
> [CPPCheck] [-ERROR-]  at 
> io.jenkins.plugins.analysis.core.model.ReportScanningTool.scan(ReportScanningTool.java:134)
> [CPPCheck] [-ERROR-]  at 
> io.jenkins.plugins.analysis.core.steps.

How to publish cppcheck results in a pipeline?

2021-03-25 Thread jesus fernandez
I am learning about Jenkins on my own, and I wanted to try the cppcheck 
plugin, I have setup the following sample pipeline:
```
pipeline {
agent any

stages {
stage('analysis') {
steps {
script{
bat'cppcheck "E:/Source" --force — enable=all — 
inconclusive — xml — xml-version=2 . 2 > cppcheck.xml'
}
}
}
}
post {
always {
// scanForIssues tool: cppCheck(pattern: 'cppcheck.xml')
publishCppcheck pattern:'cppcheck.xml'
}
}
}
```

But I get an error in the post step which I do not know if it is related to 
my projecto or if I am doing something wrong. I have follow the 
instructions on this thread [cppcheck][1]but it does not seem to work, 
wehther I use ```publushCppcheck``` :
```
[Pipeline] { (Declarative: Post Actions)
[Pipeline] publishCppcheck (hide)
[Cppcheck] Starting the cppcheck analysis.
[Cppcheck] Processing 1 files with the pattern 'cppcheck.xml'.
[Cppcheck] Parsing throws exceptions. javax.xml.bind.UnmarshalException
 - with linked exception:
[org.xml.sax.SAXParseException; systemId: 
file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
columnNumber: 1; El contenido no está permitido en el prólogo.]
[Cppcheck] java.io.IOException: javax.xml.bind.UnmarshalException
 - with linked exception:
[org.xml.sax.SAXParseException; systemId: 
file:/C:/Users/anton/.jenkins/workspace/JOB4/cppcheck.xml; lineNumber: 1; 
columnNumber: 1; El contenido no está permitido en el prólogo.]
at 
org.jenkinsci.plugins.cppcheck.parser.CppcheckParser.parse(CppcheckParser.java:67)
at 
org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:69)
at 
org.jenkinsci.plugins.cppcheck.CppcheckParserResult.invoke(CppcheckParserResult.java:24)
at hudson.FilePath.act(FilePath.java:1164)
at hudson.FilePath.act(FilePath.java:1147)
at 
org.jenkinsci.plugins.cppcheck.CppcheckPublisher.perform(CppcheckPublisher.java:337)
at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
at 
org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
at 
org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
at 
org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.bind.UnmarshalException
```

or ```scanforIssues``` from warnings ng plugin::
```
[Pipeline] { (Declarative: Post Actions)
[Pipeline] scanForIssues
[CPPCheck] [-ERROR-] Parsing of file 
'C:\Users\anton\.jenkins\workspace\JOB4\cppcheck.xml' failed due to an 
exception:
[CPPCheck] [-ERROR-] com.ctc.wstx.exc.WstxUnexpectedCharException: 
Unexpected character 'C' (code 67) in prolog; expected '<'
 at [row,col {unknown-source}]: [1,1]
[CPPCheck] [-ERROR-]  at [row,col {unknown-source}]: [1,1]
[CPPCheck] [-ERROR-]  at 
com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648)
[CPPCheck] [-ERROR-]  at 
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047)
[CPPCheck] [-ERROR-]  at 
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
[CPPCheck] [-ERROR-]  at 
se.bjurr.violations.lib.parsers.CPPCheckParser.parseReportOutput(CPPCheckParser.java:43)
[CPPCheck] [-ERROR-]  at 
edu.hm.hafner.analysis.parser.violations.AbstractViolationAdapter.parse(AbstractViolationAdapter.java:35)
[CPPCheck] [-ERROR-]  at 
io.jenkins.plugins.analysis.core.model.FilesScanner.aggregateIssuesOfFile(FilesScanner.java:105)
[CPPCheck] [-ERROR-]  at 
io.jenkins.plugins.analysis.core.model.FilesScanner.scanFiles(FilesScanner.java:89)
[CPPCheck] [-ERROR-]  at 
io.jenkins.plugins.analysis.core.model.FilesScanner.invoke(FilesScanner.java:72)
[CPPCheck] [-ERROR-]  at 
io.jenkins.plugins.analysis.core.model.FilesScanner.invoke(FilesScanner.java:30)
[CPPCheck] [-ERROR-]  at hudson.FilePath.act(FilePath.java:1164)
[CPPCheck] [-ERROR-]  at hudson.FilePath.act(FilePath.java:1147)
[CPPCheck] [-ERROR-]  at 
io.jenkins.plugins.analysis.core.model.ReportScanningTool.scanInWorkspace(ReportScanningTool.java:152)
[CPPCheck] [-ERROR-]  at 
io.jenkins.plugins.analysis.core.model.ReportScanningTool.scan(ReportScanningTool.java:134)
[CPPCheck] [-ERROR-]  at 
io.jenkins.plugins.analysis.core.steps.IssuesScanner.scan(IssuesScanner.java:95)
[CPPCheck] [-ERROR-]  at 
io.jenkins.plugins.analysis.core.steps.ScanForIssuesStep$Execution.run(ScanForIssuesStep.java:214)
[CPPCheck] [-ERROR-]  at 
io.jenkins.plugins.analysis.core.steps.ScanForIssuesStep$Execution.run(ScanForIssuesStep.java:175)
[CPPCheck] [-ERROR-]  at 
org.jenkinsci.plugins.workflow.steps.S

Re: Version Number Plugin question

2021-03-25 Thread YAOWEN WU
Hi everyone,

I try to use a different date(the start of the project), but the 
BUILD_ALL_TIME is not reset. 

On Tuesday, 2 July 2013 at 17:55:22 UTC+1 DaveS wrote:

> I figured out how to reset the numbering, 'Number of builds since the 
> start of the project' 
>
> On Monday, July 1, 2013 3:04:00 PM UTC-5, DaveS wrote:
>>
>> Jenkins ver. 1.509.1 
>> Version Number Plug-In 
>> 
>> 1.4.1 
>> 
>>
>> I am sure that the answer to this is easy, but I just haven't got it 
>> figured out.  I can't get the version number to increment.  I am trying to 
>> use the number to create directories to store files from the different 
>> builds.
>>
>> Environment Variable Name  =  TestVersion
>> Version Number Format String  =  0001
>> Don't increment failed builds.
>>
>> mkdir -p C:/NewBuilds/${TestVersion}
>>
>>
>> TestVersion is always 0001.  Tell me what I am setting incorrectly.  
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a8a6465d-93a7-4f13-8aee-96ff1864ea69n%40googlegroups.com.


Re: hudson.Filepath issue

2021-03-25 Thread Devin Nusbaum
That kind of error usually means that something is wrong with your Pipeline, 
but if you are running an old version of Pipeline: Nodes and Processes plugin 
you might be running into https://issues.jenkins.io/browse/JENKINS-58900 
, in which case the real issue 
would be that the agent is being disconnected for some reason. If you provide 
more information, such as the version of Jenkins, the versions of all installed 
plugins, and the Jenkinsfile you are using, someone may be able to help.

Thanks,
Devin

> On Mar 24, 2021, at 09:22, webde...@gmail.com  wrote:
> 
> good morning, all. My team and I have hit this issue before on the same 
> node/agent and a reboot "fixed" the issue, but we ran into the issue again 
> this morning on the same node.
> 
> here's the specific error:
> 
> org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: 
> Required context class hudson.FilePath is missing 
> 
> any ideas how to avoid this?
> 
> 
> -- 
> 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-users+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/67104874-51f2-4d88-b84d-3b3f284d3dc0n%40googlegroups.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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/BDD4DF2B-AF68-48A9-B340-DEBA807BEE84%40cloudbees.com.


Re: Email extender notification no longer resolve variables in the notification

2021-03-25 Thread Ed Rolison

I've had the same problem as this, and found that updating the Token-macro 
plugin doesn't actually solve it. I've updated to 2.15, and am still having 
the same issue>

I've also tried using Jenkins 2.285 as well as 2.277.1, and neither seems 
to have helped.

 [id=50] SEVERE h.p.e.plugins.ContentBuilder#transformText
java.lang.IllegalStateException
at 
org.objectweb.asm.tree.analysis.BasicInterpreter.(BasicInterpreter.java:66)
at 
org.parboiled.transform.RuleMethodInterpreter.(RuleMethodInterpreter.java:42)
at 
org.parboiled.transform.InstructionGraphCreator.process(InstructionGraphCreator.java:41)
at 
org.parboiled.transform.ParserTransformer.runMethodTransformers(ParserTransformer.java:62)
at 
org.parboiled.transform.ParserTransformer.extendParserClass(ParserTransformer.java:45)
at 
org.parboiled.transform.ParserTransformer.transformParser(ParserTransformer.java:39)
at org.parboiled.Parboiled.createParser(Parboiled.java:54)
Caused: java.lang.RuntimeException: Error creating extended parser class: 
null
at org.parboiled.Parboiled.createParser(Parboiled.java:58)
at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:80)
at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:74)
at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:199)


I'd appreciate any advice on further troubleshooting steps - is it worth 
erasing and re-installing the TokenMacro plugin? 
On Wednesday, 24 March 2021 at 16:58:10 UTC Mark Waite wrote:

> We've seen reports of that type of problem.  See 
> https://issues.jenkins.io/browse/JENKINS-64659 for an example.
>
> The solution has been to follow the instructions in the Jenkins 2.277.1 
> upgrade guide  that 
> advise
>
>- Update plugins before the Jenkins 2.277.1 upgrade
>- Upgrade to Jenkins 2.277.1
>- Update plugins after the Jenkins 2.277.1 upgrade
>
> In this specific case, the latest version of the token-macro plugin has 
> been the solution.
>
> Mark Waite
>
> On Wed, Mar 24, 2021 at 9:18 AM Daniel Stubkjær  
> wrote:
>
>> Hello everyone,
>>
>> last week we upgrade jenkins from 2.263.4 to 2.777.1, 
>> now we have a problem with email extender plugin(v. 2.80) that is not 
>> resolving the variabels in the email notification. instead it comes trough 
>> as below
>>
>> [image: email notification jenkins.png]
>> besides the upgrade, nothing has been changes in the install, and the job 
>> sending the notification still works as before, only problem is the 
>> unresolved variables.
>>
>> has anybody run in to a similar problem or has an idea of where to look 
>> for solution
>>
>>   
>>
>> -- 
>> 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/9ce0559c-d7d9-4247-8847-9e5d1546f29an%40googlegroups.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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/27bf70ee-70b3-48c4-8737-dbc7df3ab880n%40googlegroups.com.


Re: Email extender notification no longer resolve variables in the notification

2021-03-25 Thread Daniel Stubkjær
Hi Mark,

Thanks for the reply,
it fix the problem.

normal i would upgrade the plugins as a first thing, but this time a 
external it supporter  upgrade the server
and that also upgraded the jenkins instance on that machine, so it was an 
unintentionel upgrade. :-)

many thanks for you help


onsdag den 24. marts 2021 kl. 17.58.10 UTC+1 skrev Mark Waite:

> We've seen reports of that type of problem.  See 
> https://issues.jenkins.io/browse/JENKINS-64659 for an example.
>
> The solution has been to follow the instructions in the Jenkins 2.277.1 
> upgrade guide  that 
> advise
>
>- Update plugins before the Jenkins 2.277.1 upgrade
>- Upgrade to Jenkins 2.277.1
>- Update plugins after the Jenkins 2.277.1 upgrade
>
> In this specific case, the latest version of the token-macro plugin has 
> been the solution.
>
> Mark Waite
>
> On Wed, Mar 24, 2021 at 9:18 AM Daniel Stubkjær  
> wrote:
>
>> Hello everyone,
>>
>> last week we upgrade jenkins from 2.263.4 to 2.777.1, 
>> now we have a problem with email extender plugin(v. 2.80) that is not 
>> resolving the variabels in the email notification. instead it comes trough 
>> as below
>>
>> [image: email notification jenkins.png]
>> besides the upgrade, nothing has been changes in the install, and the job 
>> sending the notification still works as before, only problem is the 
>> unresolved variables.
>>
>> has anybody run in to a similar problem or has an idea of where to look 
>> for solution
>>
>>   
>>
>> -- 
>> 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/9ce0559c-d7d9-4247-8847-9e5d1546f29an%40googlegroups.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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bf62f05a-c482-45f6-9e76-20092215568dn%40googlegroups.com.


Re: mvn not found on $JENKINS_HOME/workspace/@tmp

2021-03-25 Thread banthita limwilai
Hi :)

>From the previous email, I asked for help about my Jenkins Slave unable to
run mvn

I'd like to share what I've founded and the solution for the problem.
I basically set the PATH for M2_HOME and MAVEN_HOME at /etc/profile which
is somehow not work with the system's permission

So, I changed to set M2_HOME and MAVEN_HOME at /etc/environment instead and
then the problem was gone :D
It's not Jenkins issue not even relate LOL but it's Linux 101

Anyway, amy thanks for Mallarapu Ananth and John for the suggestion. It was
helpful

Cheers

ในวันที่ พฤ. 25 มี.ค. 2021 เวลา 00:51 John Patrick 
เขียนว่า:

> Personally I would switch to using maven wrapper as it have saved me
> from a lot of issues like this.
>
> But to your errors;
>
> From your first error, check if mvn is on the path, so I would expect
> to see "/opt/maven/bin" within the PATH assuming "/opt/maven" is where
> maven is installed. Doesn't matter what M2_HOME or JAVA_HOME are until
> mvn is on the path.
>
> The second error implies you've not told maven what to do, as that
> looks like a maven output. So it has managed to do "mvn" without any
> arguments, so you need to do "mvn clean install" or "mvn verify".
>
> For the existing Wrapper see https://github.com/takari/maven-wrapper
> From the next Maven release see this wrapper
> https://maven.apache.org/plugins/maven-wrapper-plugin/index.html
>
> John
>
> On Wed, 24 Mar 2021 at 12:00, Mallarapu Ananth
>  wrote:
> >
> > Hi ,
> >
> > Have tried to print the M2_HOME and JAVA_HOME in the pipeline you are
> trying to build . if they are empty it might be getting overwritten . try
> to put then as environment variables in jenkins config .
> >
> > On Wednesday, March 24, 2021 at 4:53:13 PM UTC+5:30 banthit...@gmail.com
> wrote:
> >>
> >> I've locally installed maven on both Master and Slave
> >> and correctly set path for both JAVA_HOME and M2
> >>
> >> jenkins@jenkins-slave-02:~$ echo $M2_HOME
> >> /opt/maven
> >> jenkins@jenkins-slave-02:~$ echo $JAVA_HOME
> >> /usr/lib/jvm/java-1.8.0-openjdk-amd64
> >>
> >> Once reach the stage involved mvn command, the error occurs
> >>
> >> /jenkins/workspace/simple_any_tests_master@tmp/durable-c32a56b1/script.sh:
> 1: mvn: not found
> >>
> >>
> >> I notice that this @tmp dir was empty which means no pom.xml and when
> looking closely by reproduce the mvn compile in @tmp dir
> >>
> >> [INFO] Scanning for projects...
> >> [INFO]
> 
> >> [INFO] BUILD FAILURE
> >> [INFO]
> 
> >> [INFO] Total time:  0.117 s
> >> [INFO] Finished at: 2021-03-24T12:09:50+01:00
> >> [INFO]
> 
> >> [ERROR] No goals have been specified for this build. You must specify a
> valid lifecycle phase or a goal in the format : or
> :[:]:. Available
> lifecycle phases are: validate, initialize, generate-sources,
> process-sources, generate-resources, process-resources, compile,
> process-classes, generate-test-sources, process-test-sources,
> generate-test-resources, process-test-resources, test-compile,
> process-test-classes, test, prepare-package, package, pre-integration-test,
> integration-test, post-integration-test, verify, install, deploy,
> pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. ->
> [Help 1]
> >> [ERROR]
> >> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> >> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >> [ERROR]
> >> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> >> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
> >>
> >> I'm not sure what is the root cause of this error whereas incorrect
> maven path or slave setting (permission, etc.)
> >>
> >> Any helps would be appreciated
> >> Cheers
> >
> > --
> > 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-users+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/efd1fb38-db5e-45dc-8ea6-437f9668c417n%40googlegroups.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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAH9u10%3D8oFGxqJ9-0HKHVrEi9PmZ6X9UotQ7LiF9VH21Y%2BtMqA%40mail.gmail.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 e