Skip to content

Commit

Permalink
Set semver build number
Browse files Browse the repository at this point in the history
Like I did for vssetup.powershell a while back for properly-formatted semvers.
  • Loading branch information
heaths committed Oct 24, 2019
1 parent 417060f commit ded0fdd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions inc/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ parameters:
Sign: false

steps:
- powershell: |
dotnet tool install --tool-path "${env:AGENT_TOOLSDIRECTORY}\nbgv" nbgv
$version = & "${env:AGENT_TOOLSDIRECTORY}\nbgv\nbgv.exe" get-version --variable SemVer1
& "${env:AGENT_TOOLSDIRECTORY}\nbgv\nbgv.exe" cloud --version $version
displayName: Set cloud build version

- task: NuGetToolInstaller@0
displayName: Install nuget
inputs:
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"cloudBuild": {
"setAllVariables": true,
"buildNumber": {
"enabled": true
"enabled": false
}
}
}

0 comments on commit ded0fdd

Please sign in to comment.