From 372894e1ff7888f51764eaa672b02f21d04a995b Mon Sep 17 00:00:00 2001 From: shashban Date: Fri, 10 Jun 2016 16:31:39 +0530 Subject: [PATCH 1/3] Update Runpowershellwithtaskcontext.ps1 --- Utilites/Rollback/Runpowershellwithtaskcontext.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utilites/Rollback/Runpowershellwithtaskcontext.ps1 b/Utilites/Rollback/Runpowershellwithtaskcontext.ps1 index 9769938..6c8bfb0 100644 --- a/Utilites/Rollback/Runpowershellwithtaskcontext.ps1 +++ b/Utilites/Rollback/Runpowershellwithtaskcontext.ps1 @@ -15,7 +15,7 @@ Write-Verbose -Verbose "inlineScripe = $script" import-module "Microsoft.TeamFoundation.DistributedTask.Task.Common" # Construct the REST URL to obtain Build ID -$releasequeryuri = "$($env:SYSTEM_TEAMFOUNDATIONSERVERURI)$($env:SYSTEM_TEAMPROJECT)/_apis/release/releases/$($env:Release_ReleaseId)/environments/$($env:RELEASE_ENVIRONMENTURI.Split('/')[-1])/tasks?api-version=2.1-preview.1" +$releasequeryuri = "$($env:SYSTEM_TEAMFOUNDATIONSERVERURI)$($env:SYSTEM_TEAMPROJECT)/_apis/release/releases/$($env:Release_ReleaseId)/environments/$($env:RELEASE_ENVIRONMENTURI.Split('/')[-1])/tasks?api-version=2.2-preview.1" $taskexecutioninfo = @{} $releasequeryresult = $null $personalAccessToken = $null @@ -123,4 +123,4 @@ if($type -eq "FilePath") } } -Write-Verbose -Verbose "Exitting script runpowershellwithtaskcontext" \ No newline at end of file +Write-Verbose -Verbose "Exitting script runpowershellwithtaskcontext" From cf66c24e78999f7f186ad2278953cdb1db160821 Mon Sep 17 00:00:00 2001 From: shashban Date: Fri, 10 Jun 2016 16:39:48 +0530 Subject: [PATCH 2/3] Update Runpowershellwithtaskcontext.ps1 --- Utilites/Rollback/Runpowershellwithtaskcontext.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilites/Rollback/Runpowershellwithtaskcontext.ps1 b/Utilites/Rollback/Runpowershellwithtaskcontext.ps1 index 6c8bfb0..eb1f872 100644 --- a/Utilites/Rollback/Runpowershellwithtaskcontext.ps1 +++ b/Utilites/Rollback/Runpowershellwithtaskcontext.ps1 @@ -15,7 +15,7 @@ Write-Verbose -Verbose "inlineScripe = $script" import-module "Microsoft.TeamFoundation.DistributedTask.Task.Common" # Construct the REST URL to obtain Build ID -$releasequeryuri = "$($env:SYSTEM_TEAMFOUNDATIONSERVERURI)$($env:SYSTEM_TEAMPROJECT)/_apis/release/releases/$($env:Release_ReleaseId)/environments/$($env:RELEASE_ENVIRONMENTURI.Split('/')[-1])/tasks?api-version=2.2-preview.1" +$releasequeryuri = "$($env:SYSTEM_TEAMFOUNDATIONSERVERURI)$($env:SYSTEM_TEAMPROJECT)/_apis/release/releases/$($env:Release_ReleaseId)/environments/$($env:RELEASE_ENVIRONMENTURI.Split('/')[-1])/tasks?attemptId=$($env:Release_AttemptNumber)&api-version=2.2-preview.1" $taskexecutioninfo = @{} $releasequeryresult = $null $personalAccessToken = $null From 2440ea9edf9c5eb0e61921f146b7a83b0eac0612 Mon Sep 17 00:00:00 2001 From: shashban Date: Fri, 10 Jun 2016 16:40:05 +0530 Subject: [PATCH 3/3] Update task.json --- Utilites/Rollback/task.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilites/Rollback/task.json b/Utilites/Rollback/task.json index 91ca38e..c433d48 100644 --- a/Utilites/Rollback/task.json +++ b/Utilites/Rollback/task.json @@ -12,7 +12,7 @@ "version": { "Major": 1, "Minor": 1, - "Patch": 2 + "Patch": 3 }, "minimumAgentVersion": "1.95.0", "groups": [