From 364f04b1af2a8447ed339b288e971246ca1a45a1 Mon Sep 17 00:00:00 2001 From: Chaitanya Shrikhande Date: Fri, 16 Nov 2018 10:56:36 +0530 Subject: [PATCH 1/2] updated logic to load the utility.ps1 in job --- Tasks/WindowsMachineFileCopyV2/RoboCopyJob.ps1 | 2 ++ Tasks/WindowsMachineFileCopyV2/task.json | 2 +- Tasks/WindowsMachineFileCopyV2/task.loc.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Tasks/WindowsMachineFileCopyV2/RoboCopyJob.ps1 b/Tasks/WindowsMachineFileCopyV2/RoboCopyJob.ps1 index 38cb2bed6908..d2ff39fda88c 100644 --- a/Tasks/WindowsMachineFileCopyV2/RoboCopyJob.ps1 +++ b/Tasks/WindowsMachineFileCopyV2/RoboCopyJob.ps1 @@ -11,6 +11,8 @@ param ( Import-Module "$scriptRoot\ps_modules\VstsTaskSdk" Import-VstsLocStrings -LiteralPath $scriptRoot/Task.json + . $scriptRoot/Utility.ps1 + Write-Verbose "Entering script RobocopyJob.ps1" Write-Verbose "fqdn = $fqdn" Write-Verbose "sourcePath = $sourcePath" diff --git a/Tasks/WindowsMachineFileCopyV2/task.json b/Tasks/WindowsMachineFileCopyV2/task.json index c849eaf13e01..73d88b7e277e 100644 --- a/Tasks/WindowsMachineFileCopyV2/task.json +++ b/Tasks/WindowsMachineFileCopyV2/task.json @@ -13,7 +13,7 @@ "version": { "Major": 2, "Minor": 1, - "Patch": 8 + "Patch": 9 }, "releaseNotes": "What's new in Version 2.0:
  Proxy support is being added.
   Removed support of legacy DTL machines.", "minimumAgentVersion": "1.104.0", diff --git a/Tasks/WindowsMachineFileCopyV2/task.loc.json b/Tasks/WindowsMachineFileCopyV2/task.loc.json index 396297f39580..0d2cbdb2fead 100644 --- a/Tasks/WindowsMachineFileCopyV2/task.loc.json +++ b/Tasks/WindowsMachineFileCopyV2/task.loc.json @@ -13,7 +13,7 @@ "version": { "Major": 2, "Minor": 1, - "Patch": 8 + "Patch": 9 }, "releaseNotes": "ms-resource:loc.releaseNotes", "minimumAgentVersion": "1.104.0", From dc3cbe7cb4fe0fac37c86d7c83afaaace6d909ad Mon Sep 17 00:00:00 2001 From: Chaitanya Shrikhande Date: Fri, 16 Nov 2018 11:03:25 +0530 Subject: [PATCH 2/2] added double quotes to utility path --- Tasks/WindowsMachineFileCopyV2/RoboCopyJob.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tasks/WindowsMachineFileCopyV2/RoboCopyJob.ps1 b/Tasks/WindowsMachineFileCopyV2/RoboCopyJob.ps1 index d2ff39fda88c..f06c3b6dfd5b 100644 --- a/Tasks/WindowsMachineFileCopyV2/RoboCopyJob.ps1 +++ b/Tasks/WindowsMachineFileCopyV2/RoboCopyJob.ps1 @@ -11,7 +11,7 @@ param ( Import-Module "$scriptRoot\ps_modules\VstsTaskSdk" Import-VstsLocStrings -LiteralPath $scriptRoot/Task.json - . $scriptRoot/Utility.ps1 + . "$scriptRoot/Utility.ps1" Write-Verbose "Entering script RobocopyJob.ps1" Write-Verbose "fqdn = $fqdn"