An Azure DevOps pipeline to build a Power Pages based solution

The post describes, at a high level, how to build a deployable Power Pages artifact by using an Azure pipeline

Figure 1 – the repository

Running the pipeline

The pipeline (i.e. pipeline-build-contoso-portal.yml) is triggered manually (Figure 2)

Figure 2

Note: referring to Figure 2, clicking on ‘1 published’ displays the artifact that the pipeline has copied from the repository (Figure 3)

Figure 3

Note: referring to Figure 2, clicking on ‘BuildPowerPagesWebsite’ displays the the results of the pipeline run (Figure 4)

Figure 4

Step through the pipeline

The steps displayed in Figure 4 are described below

1.) Initialise job

Prepare build directory

Set build variables

Download all required tasks i.e. CopyFiles & PublishBuildArtifacts

2.) Checkout products-portal-contoso@develop to s

Checkout the ‘develop’ branch on the Git repos products-portal-contoso

3.) Get Power Pages from Website

Figure 5

4.) Publish Artifacts

Figure 6

5.) Post-job: Checkout products-portal-contoso@develop to s

6.) Report Build Status


Further Reading

Creating an Azure pipeline to build a Dynamics 365 based solution

References

https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/copy-files-v2?view=azure-pipelines&tabs=yaml

https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/publish-build-artifacts-v1?view=azure-pipelines

Leave A Comment