Skip to content

Commit

Permalink
Echo variables (#8)
Browse files Browse the repository at this point in the history
Echo variables
  • Loading branch information
evilpilaf authored Dec 9, 2019
2 parents dc300d3 + 816c8ef commit 381d642
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ jobs:
buildConfiguration: Release

steps:
- powershell: |
- 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)"
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"
Expand Down

0 comments on commit 381d642

Please sign in to comment.