From 53f8726b924c567e8799914180034f9141253eb7 Mon Sep 17 00:00:00 2001 From: Nitin Gurram Date: Thu, 25 Apr 2019 17:10:12 +0530 Subject: [PATCH] Fixing custom report dir for Jacoco (#10217) --- .../PublishCodeCoverageResultsV1/publishcodecoverageresults.ts | 2 +- Tasks/PublishCodeCoverageResultsV1/task.json | 2 +- Tasks/PublishCodeCoverageResultsV1/task.loc.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tasks/PublishCodeCoverageResultsV1/publishcodecoverageresults.ts b/Tasks/PublishCodeCoverageResultsV1/publishcodecoverageresults.ts index 254bcaf09320..6722ff361318 100644 --- a/Tasks/PublishCodeCoverageResultsV1/publishcodecoverageresults.ts +++ b/Tasks/PublishCodeCoverageResultsV1/publishcodecoverageresults.ts @@ -22,7 +22,7 @@ async function run() { let tempFolder = undefined; const disableAutoGenerate = tl.getVariable('disable.coverage.autogenerate'); - if (disableAutoGenerate) { + if (disableAutoGenerate || !autogenerateHtmlReport) { tl.debug('disabling auto generation'); autogenerateHtmlReport = false; tempFolder = resolvePathToSingleItem(workingDirectory, reportDirectory, true); diff --git a/Tasks/PublishCodeCoverageResultsV1/task.json b/Tasks/PublishCodeCoverageResultsV1/task.json index 76e718bda06d..e8ea7789658c 100644 --- a/Tasks/PublishCodeCoverageResultsV1/task.json +++ b/Tasks/PublishCodeCoverageResultsV1/task.json @@ -17,7 +17,7 @@ "version": { "Major": 1, "Minor": 150, - "Patch": 3 + "Patch": 4 }, "demands": [], "minimumAgentVersion": "2.102.0", diff --git a/Tasks/PublishCodeCoverageResultsV1/task.loc.json b/Tasks/PublishCodeCoverageResultsV1/task.loc.json index 80043224ebe7..a59b2063bdd8 100644 --- a/Tasks/PublishCodeCoverageResultsV1/task.loc.json +++ b/Tasks/PublishCodeCoverageResultsV1/task.loc.json @@ -17,7 +17,7 @@ "version": { "Major": 1, "Minor": 150, - "Patch": 3 + "Patch": 4 }, "demands": [], "minimumAgentVersion": "2.102.0",