Am 03.06.2022 um 00:34 schrieb Simon Matthews <simon.d....@gmail.com>:I have now got this to build and run in Jenkins (I installed the latest version of Docker and the docker-compose-plugin so that I could use the scripts without modification),
however, when I modify the analysis-model (to add a parser) and run ./bin/go.sh in the analysis-model directory, the script seems to be missing a step.The script has:...
echo Copying module analysis-model version ${version} to analysis-model-api-plugin Jenkins plugin
cd ../analysis-model-api-plugin || { echo "Wrong directory"; exit 1; }exec ./go.sh $version...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.
Note that the documentation refers to running "go.sh" in the analysis-model directory, but the only "go.sh" file in this directory is actually "./bin/go.sh".
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-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/5fbb2fb1-f9de-4b83-b8e9-84650fcd5ca0n%40googlegroups.com.
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.
recordIssues tool: analysisParser(pattern: 'your-report-file.xml', analysisModelId: 'your-id')
--
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-de...@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.
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?
--
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-de...@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.
In your Jenkinsfile of your job where you want to use the parser. Or are you using a Freestyle project?I think in Freestyle projects I forgot to add a dynamic selection of the parser ID in the UI up to now. I should file an issue for this bug. In this case you need to register your parser in the warnings plugin as well...
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/ef235a57-19bf-48e5-b875-a9aa24106f50n%40googlegroups.com.
Workaround 1: use a pipeline and not a Freestyle JobWorkaround 2: register your parser in the warnings plugin, see:
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/90dd9527-575c-420c-8e33-3b64a652113en%40googlegroups.com.
Am 08.06.2022 um 19:56 schrieb Simon Matthews <simon.d....@gmail.com>:More on what is stopping deploy.shI see this error message, which I had erroneously ignored previously:cp: cannot stat 'code-coverage-api-plugin/target/*hpi': No such file or directory
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7914877f-7736-464e-99dc-084f296e62a0n%40googlegroups.com.
Am 08.06.2022 um 19:56 schrieb Simon Matthews <simon.d....@gmail.com>:More on what is stopping deploy.shI see this error message, which I had erroneously ignored previously:cp: cannot stat 'code-coverage-api-plugin/target/*hpi': No such file or directoryUps, the path has been changed. I fixed that now.
You can try to create a test in https://github.com/jenkinsci/warnings-ng-plugin/blob/master/plugin/src/test/java/io/jenkins/plugins/analysis/warnings/steps/ParsersITest.java#L80Then you see if the parser already works.