Breadcrumbs

TODO - Setup asset repository in Azure DevOps šŸ”“

  1. Create an empty repository in your Azure DevOps instance:

image-20200819-142056.png
Screen Shot 2020-10-15 at 1.27.33 pm.png

2. Download the Azure template repository from software.mettleci.io. Copy the zip file to a machine with Git installed that can communicate with your Azure DevOps instance, and unzip it.

Screen Shot 2020-10-15 at 1.35.02 pm.png

3. Run the following commands in the root directory of the unzipped repository:

> git remote add origin [REPO_URL]
> git add --all
> git commit -m "Initialised template repository"
> git push --set-upstream origin master

4. In the root of the repository, there is a file called azure-pipelines.yml. In that file there are a number of variables with placeholders in the format [PLACEHOLDER]. These need to be replaced with values for your environment. Also, the following credentials need to be set in variables in Azure DevOps. As they hold credentials they should not be set in the yaml, but (at least for passwords) should use secret variables.

  • IISUsername

  • IISPassword

  • MCIUsername

  • MCIPassword

To set these variables, navigate to the pipeline and click ā€œEditā€ in the top right corner:

Screen Shot 2020-10-15 at 5.18.34 pm.png

Then click ā€œVariablesā€ in the top right:

Screen Shot 2020-10-15 at 5.21.24 pm.png

Make sure to check the box to keep the password variables secret:

Screen Shot 2020-10-15 at 5.46.03 pm.png