Closed pjohnst5 closed 2 years ago
This is the task I’m talking about https://marketplace.visualstudio.com/items?itemName=mspremier.BuildQualityChecks
Or do the task results go anywhere that can then be queried / consumed?
Specifically for coverage diff
Hi @pjohnst5,
the task produces different outputs depending on the configuration. The most prominent "output" is the task result itself (i.e., failing if a policy is not met, otherwise succeeding) in addition to the visible output in different parts of the Azure DevOps UI (see here).
"Consuming" sounds as if you would like to use the task results in another task within your pipeline. This can be done by evaluating the output variables of the task which are listed here for the warnings policy and here for the coverage policy.
Does that help?
Hi @ReneSchumacher thank you for the quick reply!
Yes it does! Just one more follow up question
Do the baseline build
statistics also get outputed somewhere?
Evaluating coverage data from 1 filtered code coverage data sets...
Total lines: 13293
Covered lines: 6866
Code Coverage (%): 51.6512
Found baseline build with ID 49220433.
Successfully read code coverage data from build.
Evaluating coverage data from 1 filtered code coverage data sets...
Total lines: 13293
Covered lines: 6988
Code Coverage (%): 52.569
Specifically talking about this portion onwards:
Found baseline build with ID 49220433...
Hey @pjohnst5,
currently, we don't have output variables for these values, but this would be a very quick addition to the current task. I'll add them and will try to publish a new version within this week.
Hi again,
the new version (v8.2.0) is online now. Let me know if it meets your needs.
I'm closing this issue now as the new feature has been added. If you have any issues with it, feel free to open a new one or contact me internally again.
Hello,
Does this task output any of the results to a file of some sort?
reason being, I’m trying to then publish the diff coverage to a db, and just need to know the values somehow of the task