MicrosoftPremier / VstsExtensions

Documentation and issue tracking for Microsoft Premier Services Visual Studio Team Services Extensions
MIT License
56 stars 14 forks source link

CodeCoveragePolicy.Percentage.Covered variable not accessible #174

Closed shubham-pathak-03 closed 2 years ago

shubham-pathak-03 commented 2 years ago

Describe the context

Describe the problem and expected behavior Trying to output the variable CodeCoveragePolicy.Percentage.Covered via pipeline script as mentioned in https://github.com/MicrosoftPremier/VstsExtensions/blob/master/BuildQualityChecks/en-US/CodeCoveragePolicy.md#policy-result-variables. However, this does not yield any value in pipeline script.

Tell us what you wanted to achieve and what unexpected behavior actually happened. Trying to run the build task with following configuration:

image

No error message was reflected, variable value is not present, however, we can output values pertaining to other baseline build variables as seen in this build run :

image

Output reflects correct baseline build coverage percentage but fails to locate it for current build run:

image

Add any concrete error messages you see in your pipeline. None

Task logs Run your pipeline with the following variables:

Send the task log to PSGerExtSupport@microsoft.com and reference your GitHub issue.

Attention: The log file may contain sensitive data (e.g., server or organization names, project names, variable information). Please do not attach the log to your GitHub issue and or remove the information from the log file before attaching or sending.

ReneSchumacher commented 2 years ago

Closing this issue as discussed internally and fixed.