Review Comments, Justification from last run on polyspace Metrics

7 visualizaciones (últimos 30 días)
Hello,
I am using polyspace metrics to store all polyspace results. Team members are going to metrics server downloading results and adding review comments. Looks ok.
How can i add those comments to subsequent run. For desktop product its easy but how to manage it on metrics server.
following is my .sh script i am using to upload results to metrics server.
Build_Number is jenkins run number.
SWCName="Acc"
ResultDir_CP="C:\Jenkins\workspace\Static-Analysis\Freestyle-jobs\vcu_beta\simulink\\${SWCName}\results_${SWCName}_CP\ps_results.pscp"
if test -f "$ResultDir_CP"; then
echo "$ResultDir_CP exists."
echo "Uploading Code Prover report to Polyspace Metrics server for SWC ${SWCName}"
ResultDir_CP="C:\Jenkins\workspace\Static-Analysis\Freestyle-jobs\vcu_beta\simulink\\${SWCName}\results_${SWCName}_CP"
polyspace-results-repository -upload "$ResultDir_CP" -prog "vcu_beta" -product "CodeProver" -f -module "${SWCName}_CP" -server "ServerIP:12427" -verif-version "${BUILD_NUMBER}"
fi
ResultDir_BF="C:\Jenkins\workspace\Static-Analysis\Freestyle-jobs\vcu_beta\simulink\\${SWCName}\results_${SWCName}_BF\ps_results.psbf"
if test -f "$ResultDir_BF"; then
echo "$FILE exists."
echo "Uploading Bug Finder report to Polyspace Metrics server for SWC ${SWCName}"
ResultDir_BF="C:\Jenkins\workspace\Static-Analysis\Freestyle-jobs\vcu_beta\simulink\\${SWCName}\results_${SWCName}_BF"
polyspace-results-repository -upload "$ResultDir_BF" -prog "vcu_beta" -product "BugFinder" -f -module "${SWCName}_BF" -server "10.10.0.231:12427" -verif-version "${BUILD_NUMBER}"
fi

Respuesta aceptada

Anirban
Anirban el 19 de Mzo. de 2021
Editada: Anirban el 19 de Mzo. de 2021
Hi,
You can use the -download option of the polyspace-results-repository command to download the results from Polyspace Metrics. Then use the -import-comments option when you perform the subsequent run (with polyspace-bug-finder or polyspace-code-prover or polypsace-bug-finder-server or polyspace-code-prover-server) to import review information from the downloaded results folder.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by