Reputation: 924
Is there a way to change the build name in AppStoreRelease@1 task? I couldn't find a way to increment it nor set a value. This is the task I've written in Azure pipelines:
- task: AppStoreRelease@1
displayName: 'Publish to the App Store TestFlight track'
inputs:
serviceEndpoint: 'Testflight upload'
appIdentifier: 'com.sample.org'
ipaPath: '$(build.artifactstagingdirectory)/**/*.ipa'
releaseTrack: 'TestFlight'
appType: 'iOS'
shouldSkipWaitingForProcessing: true
shouldSkipSubmission: true
Is there any attribute where I can set the build number?
Upvotes: 2
Views: 2096
Reputation: 779
I added this to the yaml just before the Xcode@5
task:
- task: ios-bundle-version@1
inputs:
sourcePath: 'Selfwealth/Info.plist'
versionCodeOption: 'buildid'
versionCode: '$(Build.BuildId)'
versionCodeOffset: '1'
versionName:
This results in a series of builds that have version #s like:
1.0 (10738)
1.0 (10744)
1.0 (10805)
etc.
This is fine for us. Devs can tell QA which build to use. Which is our main need.
Upvotes: 3
Reputation: 924
It takes the build version we set using ios-bundle-version@1 task. So it will publish the build in testflight with the same version code.
Upvotes: 1