From cb203e6371e09413aedcfcc2145ca8b691d0bb6f Mon Sep 17 00:00:00 2001 From: Vinayak <110326599+vinayakmsft@users.noreply.github.com> Date: Fri, 15 Nov 2024 17:06:25 +0530 Subject: [PATCH] Upgrading PCCRV2 task for NRE fix (#20662) * Upgrading PCCRV2 task for NRE fix * nits --- Tasks/Common/coveragepublisher/make.json | 2 +- Tasks/PublishCodeCoverageResultsV2/task.json | 118 +++++++++--------- .../task.loc.json | 4 +- ...ublishCodeCoverageResultsV2.versionmap.txt | 4 +- .../PublishCodeCoverageResultsV2/task.json | 8 +- .../task.loc.json | 8 +- .../task.json | 8 +- .../task.loc.json | 8 +- 8 files changed, 80 insertions(+), 80 deletions(-) diff --git a/Tasks/Common/coveragepublisher/make.json b/Tasks/Common/coveragepublisher/make.json index 442bc6cb77b..59891fb33c7 100644 --- a/Tasks/Common/coveragepublisher/make.json +++ b/Tasks/Common/coveragepublisher/make.json @@ -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": "./" } ] diff --git a/Tasks/PublishCodeCoverageResultsV2/task.json b/Tasks/PublishCodeCoverageResultsV2/task.json index 564a2b89129..d52fbe14416 100644 --- a/Tasks/PublishCodeCoverageResultsV2/task.json +++ b/Tasks/PublishCodeCoverageResultsV2/task.json @@ -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/`.
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/`.
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." + } } \ No newline at end of file diff --git a/Tasks/PublishCodeCoverageResultsV2/task.loc.json b/Tasks/PublishCodeCoverageResultsV2/task.loc.json index 15ae70d8ccf..838705c05cc 100644 --- a/Tasks/PublishCodeCoverageResultsV2/task.loc.json +++ b/Tasks/PublishCodeCoverageResultsV2/task.loc.json @@ -15,8 +15,8 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 248, - "Patch": 2 + "Minor": 249, + "Patch": 0 }, "demands": [], "minimumAgentVersion": "2.144.0", diff --git a/_generated/PublishCodeCoverageResultsV2.versionmap.txt b/_generated/PublishCodeCoverageResultsV2.versionmap.txt index 82db991768e..5a4b05b2b98 100644 --- a/_generated/PublishCodeCoverageResultsV2.versionmap.txt +++ b/_generated/PublishCodeCoverageResultsV2.versionmap.txt @@ -1,2 +1,2 @@ -Default|2.248.2 -Node20_229_4|2.248.3 +Default|2.249.0 +Node20_229_4|2.249.1 diff --git a/_generated/PublishCodeCoverageResultsV2/task.json b/_generated/PublishCodeCoverageResultsV2/task.json index 9602a2df518..f8c86a8d900 100644 --- a/_generated/PublishCodeCoverageResultsV2/task.json +++ b/_generated/PublishCodeCoverageResultsV2/task.json @@ -15,8 +15,8 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 248, - "Patch": 2 + "Minor": 249, + "Patch": 0 }, "demands": [], "minimumAgentVersion": "2.144.0", @@ -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" } } \ No newline at end of file diff --git a/_generated/PublishCodeCoverageResultsV2/task.loc.json b/_generated/PublishCodeCoverageResultsV2/task.loc.json index 3d53818e5bf..6d89659710f 100644 --- a/_generated/PublishCodeCoverageResultsV2/task.loc.json +++ b/_generated/PublishCodeCoverageResultsV2/task.loc.json @@ -15,8 +15,8 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 248, - "Patch": 2 + "Minor": 249, + "Patch": 0 }, "demands": [], "minimumAgentVersion": "2.144.0", @@ -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" } } \ No newline at end of file diff --git a/_generated/PublishCodeCoverageResultsV2_Node20/task.json b/_generated/PublishCodeCoverageResultsV2_Node20/task.json index 8c58d23a816..6184aa1df74 100644 --- a/_generated/PublishCodeCoverageResultsV2_Node20/task.json +++ b/_generated/PublishCodeCoverageResultsV2_Node20/task.json @@ -15,8 +15,8 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 248, - "Patch": 3 + "Minor": 249, + "Patch": 1 }, "demands": [], "minimumAgentVersion": "2.144.0", @@ -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" } } \ No newline at end of file diff --git a/_generated/PublishCodeCoverageResultsV2_Node20/task.loc.json b/_generated/PublishCodeCoverageResultsV2_Node20/task.loc.json index 7301c38fad0..fab650148a7 100644 --- a/_generated/PublishCodeCoverageResultsV2_Node20/task.loc.json +++ b/_generated/PublishCodeCoverageResultsV2_Node20/task.loc.json @@ -15,8 +15,8 @@ "author": "Microsoft Corporation", "version": { "Major": 2, - "Minor": 248, - "Patch": 3 + "Minor": 249, + "Patch": 1 }, "demands": [], "minimumAgentVersion": "2.144.0", @@ -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" } } \ No newline at end of file