Re: warnings-ng-plugin-devenv/analysis-model/bin/go.sh missing a step?

2022-06-06 Thread Simon Matthews

On Monday, June 6, 2022 at 2:46:19 PM UTC-7 ullrich...@gmail.com wrote:

Thanks for your reply. 

To update on progress, I had not previously added the 
analysis-model/src/test/java/edu/hm/hafner/analysis/parser/ParserTest.java file. I have now added that and the unit tests are 
passing. 

The parser is not listed in the UI, because the parser is not registered in 
> the warnings plugin yet. 
> But you can invoke the parser already using:
>
> recordIssues tool: analysisParser(pattern: 'your-report-file.xml', 
> analysisModelId: 'your-id')
>
> Does that work?
>


It's not clear to me how I run that command, or what file I add it to. 

Simon


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/e1d2aaa9-a418-431d-80ef-2a7b26b96643n%40googlegroups.com.


Re: warnings-ng-plugin-devenv/analysis-model/bin/go.sh missing a step?

2022-06-06 Thread Ullrich Hafner
The parser is not listed in the UI, because the parser is not registered in the 
warnings plugin yet. 
But you can invoke the parser already using:

recordIssues tool: analysisParser(pattern: 'your-report-file.xml', 
analysisModelId: 'your-id')
Does that work?

> Am 03.06.2022 um 20:35 schrieb Simon Matthews :
> 
> 
> 
> On Friday, June 3, 2022 at 1:15:35 AM UTC-7 ullrich...@gmail.com wrote:
> 
>> Looking at the first and second second go.sh, neither appear to actually 
>> copy any files from the file "analysis-model-api.jar" (or any 
>> "analysis-model-*SNAPSHOT.jar" file)  to the JENKINS_HOME directory. 
>> 
> 
> The first go.sh calls mvn install that installs the jar in your local maven 
> repository.
> 
> It looks like the Jenkins running under Docker is not picking up my modified 
> version of analysis-model. I don't see the parser that I added. 
> 
> I assume that I have missed a step somewhere. 
> 
> I have added files for the SoftwareDescriptor.java, I have added 
> the reference in the ParserRegistry.java, I have added the reference in 
> ParsersTest.java and an appropriate log file. 
> 
> In analysis-model, I have run "./bin/go.sh" and in warnings-ng-plug, I have 
> run "./bin/go.sh", then in the warnings-ng-plugin-devenv directory, I have 
> re-started "./jenkins.sh". 
> 
> If I configure a job, I can add "Record compiler warnings and static analysis 
> results" as a post-build step, but my new parser is not in the list. What 
> could I have missed?
> 
> Simon
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-dev+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/990c3ff9-a200-4f1b-abdd-dfdb98ffeab8n%40googlegroups.com
>  
> .

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/D7C8F359-6F0D-468D-8114-504488E83730%40gmail.com.