From ab567cbf3a6808a7d74920c65a6da8e35915e8e3 Mon Sep 17 00:00:00 2001 From: mauricio-ddelc Date: Mon, 9 Dec 2019 21:42:31 +0100 Subject: [PATCH 1/3] use PowerShell core for multi PS support --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index aac8e38..6a8c8df 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,7 +27,7 @@ jobs: buildConfiguration: Release steps: - - powershell: | + - pwsh: | [string]$latestTag=iex 'git describe --tags --abbrev=0' [string]$version="v$latestTag.$(BUILD.BUILDNUMBER)" Write-Output "##vso[build.updatebuildnumber]$version" From 4b314a9841f1de60fa083d9101cdd5ae4586a453 Mon Sep 17 00:00:00 2001 From: mauricio-ddelc Date: Mon, 9 Dec 2019 21:49:54 +0100 Subject: [PATCH 2/3] Echo the build variables --- azure-pipelines.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6a8c8df..3509b74 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,6 +27,10 @@ jobs: buildConfiguration: Release steps: + - pwsh: | + Write-Output 'BUILD_PR=$(SYSTEM.PULLREQUEST.PULLREQUESTNUMBER) BUILD_ID=$(BUILD.BUILDNUMBER)' + displayName: "Echo the build variables" + - pwsh: | [string]$latestTag=iex 'git describe --tags --abbrev=0' [string]$version="v$latestTag.$(BUILD.BUILDNUMBER)" From 816c8efc90fd700a03a35b5f37eec07ff54454df Mon Sep 17 00:00:00 2001 From: mauricio-ddelc Date: Mon, 9 Dec 2019 21:54:45 +0100 Subject: [PATCH 3/3] Rename task to be more explicit --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3509b74..8885601 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -35,7 +35,7 @@ jobs: [string]$latestTag=iex 'git describe --tags --abbrev=0' [string]$version="v$latestTag.$(BUILD.BUILDNUMBER)" Write-Output "##vso[build.updatebuildnumber]$version" - displayName: "Get latest git tag" + displayName: "Set buld task name" - task: UseDotNet@2 displayName: "Add dotnet core 2.1"