Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing the Dep tag from the PCCRV1 #20786

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
190 changes: 95 additions & 95 deletions Tasks/PublishCodeCoverageResultsV1/package-lock.json

Large diffs are not rendered by default.

155 changes: 76 additions & 79 deletions Tasks/PublishCodeCoverageResultsV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,101 +7,98 @@
"helpMarkDown": "[Learn more about this task](https://go.microsoft.com/fwlink/?LinkID=626485)",
"category": "Test",
"visibility": [
"Build"
"Build"
],
"runsOn": [
"Agent",
"DeploymentGroup"
"Agent",
"DeploymentGroup"
],
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 248,
"Patch": 0
"Major": 1,
"Minor": 252,
"Patch": 0
},
"demands": [],
"minimumAgentVersion": "2.182.1",
"instanceNameFormat": "Publish code coverage from $(summaryFileLocation)",
"deprecated": true,
"deprecationMessage": "The PublishCodeCoverageResults@1 is deprecated. Users are recommended to switch to task version 2. For more details, see https://devblogs.microsoft.com/devops/new-pccr-task",
"inputs": [
{
"name": "codeCoverageTool",
"type": "pickList",
"label": "Code coverage tool",
"required": true,
"defaultValue": "JaCoCo",
"helpMarkDown": "The tool with which code coverage results are generated.",
"options": {
"Cobertura": "Cobertura",
"JaCoCo": "JaCoCo"
}
},
{
"name": "summaryFileLocation",
"type": "string",
"label": "Summary file",
"defaultValue": "",
"required": true,
"helpMarkDown": "Path of the summary file containing code coverage statistics, such as line, method, and class coverage. The value may contain minimatch patterns. For example: `$(System.DefaultWorkingDirectory)/MyApp/**/site/cobertura/coverage.xml`"
},
{
"name": "pathToSources",
"type": "string",
"label": "Path to Source files",
"defaultValue": "",
"required": false,
"helpMarkDown": "Path to source files is required when coverage XML reports do not contain absolute path to source files. For e.g., JaCoCo reports do not use absolute paths and when publishing JaCoCo coverage for Java apps, the pattern would be similar to `$(System.DefaultWorkingDirectory)/MyApp/src/main/java/`.<br />This input is also needed if tests are run in a docker container. This input should point to absolute path to source files on the host. For e.g., `$(System.DefaultWorkingDirectory)/MyApp/`"
},
{
"name": "reportDirectory",
"type": "string",
"label": "Report directory",
"defaultValue": "",
"required": false,
"helpMarkDown": "Path of the code coverage HTML report directory. The report directory is published for later viewing as an artifact of the build. The value may contain minimatch patterns. For example: `$(System.DefaultWorkingDirectory)/MyApp/**/site/cobertura`"
},
{
"name": "additionalCodeCoverageFiles",
"type": "string",
"label": "Additional files",
"defaultValue": "",
"required": false,
"helpMarkDown": "File path pattern specifying any additional code coverage files to be published as artifacts of the build. The value may contain minimatch patterns. For example: `$(System.DefaultWorkingDirectory)/**/*.exec`"
},
{
"name": "failIfCoverageEmpty",
"type": "boolean",
"label": "Fail when code coverage results are missing",
"defaultValue": "false",
"required": false,
"helpMarkDown": "Fail the task if code coverage did not produce any results to publish."
{
"name": "codeCoverageTool",
"type": "pickList",
"label": "Code coverage tool",
"required": true,
"defaultValue": "JaCoCo",
"helpMarkDown": "The tool with which code coverage results are generated.",
"options": {
"Cobertura": "Cobertura",
"JaCoCo": "JaCoCo"
}
},
{
"name": "summaryFileLocation",
"type": "string",
"label": "Summary file",
"defaultValue": "",
"required": true,
"helpMarkDown": "Path of the summary file containing code coverage statistics, such as line, method, and class coverage. The value may contain minimatch patterns. For example: `$(System.DefaultWorkingDirectory)/MyApp/**/site/cobertura/coverage.xml`"
},
{
"name": "pathToSources",
"type": "string",
"label": "Path to Source files",
"defaultValue": "",
"required": false,
"helpMarkDown": "Path to source files is required when coverage XML reports do not contain absolute path to source files. For e.g., JaCoCo reports do not use absolute paths and when publishing JaCoCo coverage for Java apps, the pattern would be similar to `$(System.DefaultWorkingDirectory)/MyApp/src/main/java/`.<br />This input is also needed if tests are run in a docker container. This input should point to absolute path to source files on the host. For e.g., `$(System.DefaultWorkingDirectory)/MyApp/`"
},
{
"name": "reportDirectory",
"type": "string",
"label": "Report directory",
"defaultValue": "",
"required": false,
"helpMarkDown": "Path of the code coverage HTML report directory. The report directory is published for later viewing as an artifact of the build. The value may contain minimatch patterns. For example: `$(System.DefaultWorkingDirectory)/MyApp/**/site/cobertura`"
},
{
"name": "additionalCodeCoverageFiles",
"type": "string",
"label": "Additional files",
"defaultValue": "",
"required": false,
"helpMarkDown": "File path pattern specifying any additional code coverage files to be published as artifacts of the build. The value may contain minimatch patterns. For example: `$(System.DefaultWorkingDirectory)/**/*.exec`"
},
{
"name": "failIfCoverageEmpty",
"type": "boolean",
"label": "Fail when code coverage results are missing",
"defaultValue": "false",
"required": false,
"helpMarkDown": "Fail the task if code coverage did not produce any results to publish."
}
],
"execution": {
"Node10": {
"target": "publishcodecoverageresults.js",
"argumentFormat": ""
},
"Node16": {
"target": "publishcodecoverageresults.js",
"argumentFormat": ""
}
"Node10": {
"target": "publishcodecoverageresults.js",
"argumentFormat": ""
},
"Node16": {
"target": "publishcodecoverageresults.js",
"argumentFormat": ""
}
},
"restrictions": {
"settableVariables": {
"allowed": []
}
"settableVariables": {
"allowed": []
}
},
"messages": {
"FoundNMatchesForPattern": "Found %s result(s) matching pattern: %s",
"MultipleSummaryFilesFound": "Multiple file or directory matches were found. Using the first match: %s",
"NoCodeCoverage": "No code coverage results were found to publish.",
"InstallDotNetCoreForHtmlReport": "Please install dotnet core to enable automatic generation of Html report.",
"FailedToGenerateHtmlReport": "Failed to generate Html report. Error: %s",
"IgnoringReportDirectory": "Ignoring coverage report directory with Html content as we are auto-generating Html content",
"UpgradeAgentMessage": "Please upgrade your agent version. https://github.com/Microsoft/vsts-agent/releases",
"GeneratedHtmlReport": "Generated code coverage html report: %s",
"V1TaskDeprecationNotice": "New V2 version of task publishing code coverage results is available to all our customers now. We highly recommend to stop using the V1 version and migrate to V2 version (https://learn.microsoft.com/azure/devops/pipelines/tasks/reference/publish-code-coverage-results-v2). For more details, see - https://devblogs.microsoft.com/devops/new-pccr-task."
"FoundNMatchesForPattern": "Found %s result(s) matching pattern: %s",
"MultipleSummaryFilesFound": "Multiple file or directory matches were found. Using the first match: %s",
"NoCodeCoverage": "No code coverage results were found to publish.",
"InstallDotNetCoreForHtmlReport": "Please install dotnet core to enable automatic generation of Html report.",
"FailedToGenerateHtmlReport": "Failed to generate Html report. Error: %s",
"IgnoringReportDirectory": "Ignoring coverage report directory with Html content as we are auto-generating Html content",
"UpgradeAgentMessage": "Please upgrade your agent version. https://github.com/Microsoft/vsts-agent/releases",
"GeneratedHtmlReport": "Generated code coverage html report: %s"
}
}
2 changes: 1 addition & 1 deletion Tasks/PublishCodeCoverageResultsV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 248,
"Minor": 252,
"Patch": 0
},
"demands": [],
Expand Down
4 changes: 2 additions & 2 deletions _generated/PublishCodeCoverageResultsV1.versionmap.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Default|1.248.0
Node20_229_4|1.248.1
Default|1.252.0
Node20_229_4|1.252.1
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@
"loc.messages.FailedToGenerateHtmlReport": "Failed to generate Html report. Error: %s",
"loc.messages.IgnoringReportDirectory": "Ignoring coverage report directory with Html content as we are auto-generating Html content",
"loc.messages.UpgradeAgentMessage": "Please upgrade your agent version. https://github.com/Microsoft/vsts-agent/releases",
"loc.messages.GeneratedHtmlReport": "Generated code coverage html report: %s",
"loc.messages.V1TaskDeprecationNotice": "New V2 version of task publishing code coverage results is available to all our customers now. We highly recommend to stop using the V1 version and migrate to V2 version (https://learn.microsoft.com/azure/devops/pipelines/tasks/reference/publish-code-coverage-results-v2). For more details, see - https://devblogs.microsoft.com/devops/new-pccr-task."
"loc.messages.GeneratedHtmlReport": "Generated code coverage html report: %s"
}
Loading
Loading