Using Azure Pipelines at Dailymotion for the UWP Team, Releasing test builds and publishing to the UWP Store [Part 4]

Delaire Damien
4 min readOct 22, 2019

This article will talk how the dailymotion UWP team used Azure Pipelines to create a CI/CD. We will go over how to setup this CI using YAML.

It will be divided into 4 parts:

Part 1 : Continuous integration, Creating automated Builds (x64, x86, Release, Debug, etc) using YAML

Part 2: Running Unit Tests in Azure Pipelines

Part 3: Running UI test with WinAppDrivers in Azure Pipelines

Part 4: Releasing test builds and publishing to the UWP Store

Quick Info: to achieve some of these screenshots I sometimes had to use my personal Microsoft Partner Dev Store, if you see some inconsistencies between the screenshots its normal (I don’t have access to my company AD service).

Let get Started

First off you will need to add the Windows Store plugin to your Azure Pipelines which can be found here.

Next, you will be asked to install this on your Azure DevOps organization:

Screenshot taken from my personal Azure Pipelines

Head back to our Azure DevOps portal, go to the Pipelines section, select Builds, we will edit our YAML file by adding a task to publish to the Windows Store as follows:

Screenshot taken from my personal Azure Pipelines

Once we have clicked on Edit we will search for the Windows Store — Flight / Publish tasks:

Screenshot taken from my personal Azure Pipelines

As you can imagine:

Screenshot taken from Dailymotion Partner Center
  • Windows Store — Release : will publish your application in release mode.

In Azure Pipelines when you add the task Windows Store — Release you will be asked to fill in the following information Service endpoint & Application ID:

Screenshot taken from my personal Azure Pipelines

If like me you didn’t add an endpoint (I was on my personal account) we are going to need to add one, if you already have one you can skip this next step.

Screenshot taken from my personal Azure Pipelines

Adding a Service Endpoint

Head to the the Users Panel in the Settings : https://partner.microsoft.com/en-us/dashboard/account/usermanagement

Select Add Azure AD applications (if you don’t see this you will need to connect an Azure AD to your account).

Screenshot taken from Dailymotion Partner Center

Create a New Azure AD Application you will get a Tenant ID and Client ID as follows:

Screenshot taken from Dailymotion Partner Center

Next we will go back to Azure DevOps, select your project and go into Project Settings (located at the bottom left). Add a new Service Connection and add a Windows Dev Center:

Screenshot taken from Dailymotion Azure Pipelines
Screenshot taken from Dailymotion Azure Pipelines

Now when you go back to your YAML task you will find your endpoint, if you are setting up Flight releases make sure you correctly set the Flight Name.

Screenshot taken from Dailymotion Azure Pipelines

Your YAML will look as follows for a Store Publish:

Screenshot taken from Dailymotion Azure Pipelines

And now your build will be deployed to the Windows Store when you have built a release version of your app.

Here is the full azure-pipelines.release.yml file we are using:

Dailymotion: azure-pipelines.release.yml

Happy CI =)

Very Helpful Resources:

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Delaire Damien
Delaire Damien

Written by Delaire Damien

Technical Lead on (Windows & Smart TV apps) @Dailymotion, Windows Mobile/ Xbox/ Desktop Lover. Entrepreneur in spirit, I love working on side projects

No responses yet

Write a response