Skip to content

Commit

Permalink
Upgrading PCCRV2 task for NRE fix (#20662)
Browse files Browse the repository at this point in the history
* Upgrading PCCRV2 task for NRE fix

* nits
  • Loading branch information
vinayakmsft authored Nov 15, 2024
1 parent 3a4c12d commit cb203e6
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 80 deletions.
2 changes: 1 addition & 1 deletion Tasks/Common/coveragepublisher/make.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"externals": {
"archivePackages": [
{
"url": "https://testmanagementstore.z13.web.core.windows.net/testmanagementcoverage/29242799/CoveragePublisher.zip",
"url": "https://testmanagementstore.z13.web.core.windows.net/testmanagementcoverage/29330673/CoveragePublisher.zip",
"dest": "./"
}
]
Expand Down
118 changes: 59 additions & 59 deletions Tasks/PublishCodeCoverageResultsV2/task.json
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
{
"id": "2A7EBC54-C13E-490E-81A5-D7561AB7CD97",
"name": "PublishCodeCoverageResults",
"friendlyName": "Publish code coverage results v2",
"description": "Publish any of the code coverage results from a build",
"helpUrl": "https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-code-coverage-results",
"helpMarkDown": "[Learn more about this task](https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/publish-code-coverage-results-v2?view=azure-pipelines)",
"category": "Test",
"visibility": [
"Build"
],
"runsOn": [
"Agent"
],
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 248,
"Patch": 2
"id": "2A7EBC54-C13E-490E-81A5-D7561AB7CD97",
"name": "PublishCodeCoverageResults",
"friendlyName": "Publish code coverage results v2",
"description": "Publish any of the code coverage results from a build",
"helpUrl": "https://docs.microsoft.com/azure/devops/pipelines/tasks/test/publish-code-coverage-results",
"helpMarkDown": "[Learn more about this task](https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/publish-code-coverage-results-v2?view=azure-pipelines)",
"category": "Test",
"visibility": [
"Build"
],
"runsOn": [
"Agent"
],
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 249,
"Patch": 0
},
"demands": [],
"minimumAgentVersion": "2.144.0",
"instanceNameFormat": "Publish code coverage results",
"inputs": [
{
"name": "summaryFileLocation",
"type": "multiLine",
"label": "Path to summary files",
"defaultValue": "",
"required": true,
"helpMarkDown": "Paths to summary files containing code coverage statistics, such as line, method, and class coverage. Multiple summary files will be merged into a single report. Supports multiple lines of minimatch patterns. [More information](https://aka.ms/minimatchexamples)"
},
"demands": [],
"minimumAgentVersion": "2.144.0",
"instanceNameFormat": "Publish code coverage results",
"inputs": [
{
"name": "summaryFileLocation",
"type": "multiLine",
"label": "Path to summary files",
"defaultValue": "",
"required": true,
"helpMarkDown": "Paths to summary files containing code coverage statistics, such as line, method, and class coverage. Multiple summary files will be merged into a single report. Supports multiple lines of minimatch patterns. [More information](https://aka.ms/minimatchexamples)"
},
{
"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": "failIfCoverageEmpty",
"type": "boolean",
"label": "Fail if 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": ""
}
{
"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/`"
},
"messages": {
"FoundNMatchesForPattern": "Found %s result(s) matching pattern: %s",
"NoCodeCoverage": "No code coverage results were found to publish."
{
"name": "failIfCoverageEmpty",
"type": "boolean",
"label": "Fail if 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": ""
}
},
"messages": {
"FoundNMatchesForPattern": "Found %s result(s) matching pattern: %s",
"NoCodeCoverage": "No code coverage results were found to publish."
}
}
4 changes: 2 additions & 2 deletions Tasks/PublishCodeCoverageResultsV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 248,
"Patch": 2
"Minor": 249,
"Patch": 0
},
"demands": [],
"minimumAgentVersion": "2.144.0",
Expand Down
4 changes: 2 additions & 2 deletions _generated/PublishCodeCoverageResultsV2.versionmap.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Default|2.248.2
Node20_229_4|2.248.3
Default|2.249.0
Node20_229_4|2.249.1
8 changes: 4 additions & 4 deletions _generated/PublishCodeCoverageResultsV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 248,
"Patch": 2
"Minor": 249,
"Patch": 0
},
"demands": [],
"minimumAgentVersion": "2.144.0",
Expand Down Expand Up @@ -62,7 +62,7 @@
"NoCodeCoverage": "No code coverage results were found to publish."
},
"_buildConfigMapping": {
"Default": "2.248.2",
"Node20_229_4": "2.248.3"
"Default": "2.249.0",
"Node20_229_4": "2.249.1"
}
}
8 changes: 4 additions & 4 deletions _generated/PublishCodeCoverageResultsV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 248,
"Patch": 2
"Minor": 249,
"Patch": 0
},
"demands": [],
"minimumAgentVersion": "2.144.0",
Expand Down Expand Up @@ -62,7 +62,7 @@
"NoCodeCoverage": "ms-resource:loc.messages.NoCodeCoverage"
},
"_buildConfigMapping": {
"Default": "2.248.2",
"Node20_229_4": "2.248.3"
"Default": "2.249.0",
"Node20_229_4": "2.249.1"
}
}
8 changes: 4 additions & 4 deletions _generated/PublishCodeCoverageResultsV2_Node20/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 248,
"Patch": 3
"Minor": 249,
"Patch": 1
},
"demands": [],
"minimumAgentVersion": "2.144.0",
Expand Down Expand Up @@ -66,7 +66,7 @@
"NoCodeCoverage": "No code coverage results were found to publish."
},
"_buildConfigMapping": {
"Default": "2.248.2",
"Node20_229_4": "2.248.3"
"Default": "2.249.0",
"Node20_229_4": "2.249.1"
}
}
8 changes: 4 additions & 4 deletions _generated/PublishCodeCoverageResultsV2_Node20/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 248,
"Patch": 3
"Minor": 249,
"Patch": 1
},
"demands": [],
"minimumAgentVersion": "2.144.0",
Expand Down Expand Up @@ -66,7 +66,7 @@
"NoCodeCoverage": "ms-resource:loc.messages.NoCodeCoverage"
},
"_buildConfigMapping": {
"Default": "2.248.2",
"Node20_229_4": "2.248.3"
"Default": "2.249.0",
"Node20_229_4": "2.249.1"
}
}

0 comments on commit cb203e6

Please sign in to comment.