Building the Client Extension
Learn how to compile code as a Build Version that can be deployed
With an understanding of the Deployment Pipeline let's cover how client code is compiled into a Build Version ready for deployment.
Build Overview
The Client Extension Build Process creates a Docker Image by compiling client code and adding it to a Microsoft ASP.NET Core Docker Image. These docker images are stored in Directscale's private docker registry and are only used for deploying code to Stage and Production. See Deploying A Build Version. If a Client Developer wants to run code locally as a docker image they can build and run their own docker image.
How To Build A Version
Ready to create your first Build?
Before attempting to build a version make sure you have completed all steps in the Setting up the Client Extension article. Disregarding these steps will cause build failures or builds might not even be created.
- Log into your Corporate Admin.
- Select 'Tools' and then 'Developer Tools' from the main menu.
- Click on 'Deployment'
- Enter the name of the GitHub Repo branch to build in the text box next to the Queue New Build button. This is case sensitive
- Click the Queue New Build button.
A new Build Version should appear in the Builds List with a result of Queued or Processing. When the build has finished processing it should show a Success result. See Failed Builds if it does not.
The Result of a Build Version will be one of the following results
- Processing
- Success
- Failed
Failed Builds
If a build is Failed then the Result text will be a hyperlink to see more information.
The Build Issues modal displays the Last Known Status of the Build Version as well as any errors that occured during the build. Use the Build Statuses section as a reference to understand where the build failed. Use the ⚠ Errors displayed to further understand the issue that occurred.
Build Statuses
QueuedVersion number is assigned. Waiting for a background process to build the code.
CheckingOutSourceCodeSource code from the client GitHub Repo is cloned.
GatheringMetaDataFromProjectThings like the .NET TargetFramework are collected in preparation for building a Docker Image.
BuildingSourceCodeThe client source code cloned from GitHub is compiled.
PushingContainerA docker image is built and pushed to Directscale's private container registry by adding the client's compiled source code to a Microsoft ASP.NET Core Docker Image.
SuccessClient source code was successfully compiled and built as a Docker Image.
Directscale adds the Build Version as a Git Tag on the latest commit that was cloned from the client GitHub repo.
Updated over 2 years ago