Skip to content

Commit

Permalink
ci: Set the build number to be the buildId
Browse files Browse the repository at this point in the history
  • Loading branch information
carlh98 committed Apr 29, 2024
1 parent a7ad1f2 commit 2ceeef3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build/steps-build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ steps:

- template: templates/gitversion.yml

- 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"
- task: DownloadSecureFile@1
name: keyStore
displayName: "Download Keystore from Secure Files"
Expand Down
10 changes: 10 additions & 0 deletions build/steps-build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ steps:

- template: templates/gitversion.yml

- 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"
- task: InstallAppleCertificate@2
displayName: Install Certificate
inputs:
Expand Down

0 comments on commit 2ceeef3

Please sign in to comment.