File tree Expand file tree Collapse file tree 5 files changed +15
-13
lines changed
Expand file tree Collapse file tree 5 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 11steps :
22
33 - powershell : $(Build.SourcesDirectory)/scripts/azpipelines/build-type.ps1 "$(Build.SourceBranch)" "$(Build.BuildNumber)"
4- displayName : Resolve build type
5-
6- - powershell : $(Build.SourcesDirectory)/scripts/azpipelines/update-build-name.ps1
7- displayName : Resolve version
4+ displayName : Resolve build info
Original file line number Diff line number Diff line change 33 - template : ./credscan.yml
44 - template : ./win-dependencies.yml
55
6+ - powershell : |
7+ $version = npm run -s ts scripts/package/get-version
8+ Write-Host "Updating build number to $version"
9+ Write-Host "##vso[build.updatebuildnumber]$version"
10+ displayName: Update build version for packaging
11+
612 - powershell : |
713 . .vsts/win/exec.ps1
814 $ErrorActionPreference = "Stop"
Original file line number Diff line number Diff line change @@ -3,21 +3,21 @@ param (
33 $buildNumber
44)
55# This compute the build type for VSTS build
6- $buildType = " dev"
6+ $buildType = " dev"
77
88Write-Host " Branch is $branch "
99
1010If ($branch -like " refs/heads/master" ) {
11- $buildType = " insider"
11+ $buildType = " insider"
1212}
1313
1414If ($branch -like " refs/heads/stable" ) {
15- $buildType = " stable"
15+ $buildType = " stable"
1616}
1717
1818# Change to curent branch for testing
1919If ($branch -like " refs/heads/feature/signing-vsts" ) {
20- $buildType = " testing"
20+ $buildType = " testing"
2121}
2222
2323Write-Host " Build type is $buildType "
@@ -26,6 +26,6 @@ Write-Host "##vso[task.setvariable variable=BUILD_TYPE]$buildType"
2626
2727# Hyphens in the version causes RPM packaging to fail
2828# See https://azurebatch.visualstudio.com/BatchExplorer/_workitems/edit/379
29- $newBuildNumber = $buildNumber -replace ' -' , ' _'
29+ $newBuildNumber = $buildNumber -replace ' -' , ' _'
3030Write-Host " Setting build number to $newBuildNumber "
3131Write-Host " ##vso[build.updatebuildnumber]$newBuildNumber "
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import { version } from "./package-utils" ;
2+ // eslint-disable no-console
3+ console . log ( version ) ;
You can’t perform that action at this time.
0 commit comments