Device Management MDM

Azure DevOps and Azure Pipelines integration

Azure DevOps is a Microsoft product that provides version control, reporting, requirements management, project management (for both agile software development and waterfall teams), automated builds, testing and release management capabilities. It covers the entire application lifecycle, and enables DevOps capabilities. It’s usually used in combination with Azure Pipelines, another Microsoft product under the Azure DevOps suite that enables cloud-hosted pipelines for Linux, macOS and Windows to build web, desktop and mobile applications.

If you are using Azure DevOps as part of your development life cycle, you can connect it to your Applivery account so that new versions of your Apps are automatically deployed in Applivery and distributed to your users. 

There are many ways to connect Azure Pipelines with Applivery. Probably the simplest is in combination with Fastlane (read more about Fastlane Tools here).

In this tutorial we will see how you can connect both to enable continuous deliver of your iOS and Android Apps through Applivery.

Initial requirements #

This tutorial is assuming the next steps have been already taken:

  1. You already have a Azure DevOps account.
  2. You already have a Azure Pipelines configuration in place.
  3. You are familiar with Fastlane Tools and Fastlane configuration for Applivery.

If that’s the case, let’s get started:

Step 1 - Configuration #

Under your azure-pipelines.yml file, configure a new script as follow:

				
					- script: fastlane dev_deploy applivery_token:
				
			
This simple step will invoke fastlane dev_deploy lane.

Step 2 - Define your Fastfile #

Now define your Fastfile following the Applivery Fastlane plugin documentation. Here is an example that will also get some environment variables from your Azure configuration:
				
					desc "Deploy a DEV ipa to Applivery"
 lane :dev_deploy do |options|
   increment_build_number(
     build_number: number_of_commits
   )
   build_app(
     scheme: "myproject-DEV",
     export_method: "enterprise"
   )
   applivery(
     app_token: options[:applivery_token],
     notify_collaborators: false,
     changelog: last_git_commit[:message]
   )
 end
				
			

That’s it! Now you can start building and deploying your Apps like a pro with Azure DevOps and Azure Pipelines.

Managing environment and secret variables in Azure #

We always recommend to not include your Applivery App Token directly into the azure-pipelines.yml file. Insted we recommend using the Azure Variables: 
Once defined, you will be able to access the defined variables as follow: $(applivery_token)