Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Internal: Update build name to be version (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin authored Mar 6, 2019
1 parent 439f135 commit 8e89f08
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,19 @@ jobs:
- script: go test ./...
displayName: Test

- script: ls
- powershell: |
$branch = $env:BUILD_SOURCEBRANCH
$buildType = "-test"
If ($branch -like "refs/heads/master") {
$buildType="-master"
}
$pkgVersion = ./batch-insights --version
$version = "$pkgVersion$buildType.$env:BUILD_NUMBER"
Write-Host "Version is $version"
Write-Host "##vso[build.updatebuildnumber]$version"
displayName: Update build name
- task: CopyFiles@2
inputs:
Expand All @@ -42,8 +54,6 @@ jobs:
- script: go test ./...
displayName: Test

- script: ls

- task: CopyFiles@2
inputs:
contents: batch-insights.exe
Expand All @@ -52,4 +62,4 @@ jobs:
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: 'windows'
artifactName: 'windows'

0 comments on commit 8e89f08

Please sign in to comment.