Download iOS IPA or Android APK from Azure DevOps

Hey Guys !!!!!!

Let’s explore the process of downloading an Android apk or iOS spa from Azure DevOps.

Let’s utilise the artifacts and copyfile tasks that Azure devops has provided.

  1. CopyFiles@2
  2. PublishBuildArtifacts@1

So, on both mobile platforms, after the archive or Android signing job, we added it to the list of tasks above.

iOS

- task: Xcode@5
inputs:
actions: 'archive' ......
......
- task: CopyFiles@2
displayName: Copy artifacts
inputs:
SourceFolder: $(agent.builddirectory)
Contents: |
**/*.ipa
TargetFolder: $(build.artifactstagingdirectory)
flattenFolders: true
- task: PublishBuildArtifacts@1
displayName: Publish artifacts
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: drop-ios
publishLocation: Container

Android

- task: AndroidSigning@3
inputs:
apkFiles: 'app-release.apk' ......
......
- task: CopyFiles@2
displayName: Copy artifacts
inputs:
SourceFolder: $(agent.builddirectory)
Contents: 'app-release.apk'
TargetFolder: $(build.artifactstagingdirectory)
- task: PublishBuildArtifacts@1
displayName: Publish artifacts
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: drop-android
publishLocation: Container

Once the Azure pipeline has been properly executed, we can locate and download the file here.

The next download choice page will appear once you tap on one published test link.

I hope this article has given you some insight into Azure Devops’ file download functionality.

https://theniks.github.io/Portfolio/

If you have any questions or comments, kindly post them below. I’d adore hearing from you.

Learn more Download iOS IPA or Android APK from Azure DevOps

Leave a Reply