MATLAB Answers

Review Comments, Justification from last run on polyspace Metrics

2 views (last 30 days)
Darshan Gade
Darshan Gade on 17 Mar 2021
Edited: Anirban on 19 Mar 2021
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

Accepted Answer

Anirban
Anirban on 19 Mar 2021
Edited: Anirban on 19 Mar 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.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by