Skip to content

Commit

Permalink
Merge pull request #3 from nventive/dev/cama/BuildVersion
Browse files Browse the repository at this point in the history
ci: Set the build number to be the build id
  • Loading branch information
carlh98 authored Apr 29, 2024
2 parents a7ad1f2 + 16f5989 commit 5c26fcb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/steps-build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ steps:

- template: templates/gitversion.yml

- template: templates/build-number.yml

- task: DownloadSecureFile@1
name: keyStore
displayName: "Download Keystore from Secure Files"
Expand Down
2 changes: 2 additions & 0 deletions build/steps-build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ steps:

- template: templates/gitversion.yml

- template: templates/build-number.yml

- task: InstallAppleCertificate@2
displayName: Install Certificate
inputs:
Expand Down
10 changes: 10 additions & 0 deletions build/templates/build-number.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
steps:
- task: PowerShell@2
displayName: Set the build version
inputs:
targetType: inline
script: |
$buildNumber = [int]$(Build.BuildId)
Write-Host "##vso[task.setvariable variable=BuildNumber]$buildNumber"
Write-Host "Build number: $BuildNumber"

0 comments on commit 5c26fcb

Please sign in to comment.