Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Configure AMAW CI for Angular and React application from Release to Master

Gustavo Denis edited this page Oct 31, 2019 · 1 revision
Main >Using Liquid for building your application> Using Liquid for building your application > Configure CI, CD and CT with Mono-Repo > Continuous Integration > Configure Liquid CI for Angular and React application from Release to Master

Configure Build Pipeline

  1. The first step consist in create a build task importing JSON File or template in VSTS.

Importing JSON File

Click on +Import Button e choose your template file with JSON Format.

image.png

After select the JSON File, click on import button

image.png

Create a Build Pipeline From VSTS Template

Another option is the creation build task through a VSTS Template.

Click on +New button.

image.png

Choose a template Liquid_NPM_Install_PR_ReleaseOnMaster

Configuring Build Pipeline to .Net Core components

  1. Modify the pipeline name to Liquid_NPM_Install_PR_ReleaseOnMaster or other name of your preference.
  2. Choose the Repository with Liquid.

image.png

image.png

In Agent Pool, select the option

In Additional Options, enable the option Allow scripts to access the OAuth token. This option allow the Powershell perform tasks integrated with Git and VSTS.

image.png

image.png

Nuget Extension - is responsible to import function from Package Management.

image.png

Git Fetch - Get source code from remote repository.

image.png

Git Checkout - Perform checkout of Source Code in local branch on VSTS.

image.png

Change Version Csproj - Git Tag - This task get the version in Git Tag and change all Package.Json Files, this resource allow the same standard version.

image.png

npm install - Angular - This task perform the analysis of Angular Packages, if show any error the process is aborted and the Developer need fix the source code.

In Use packages from this VSTS/TFS registry is necessary fill with Package Management name.

image.png

npm install - AngularOnAzure - This task perform the analysis of Angular Packages compatible with Microsoft Azure, if show any error the process is aborted and the Developer need fix the source code.

In Use packages from this VSTS/TFS registry is necessary fill with Package Management name.

image.png

npm install - React - This task perform the analysis of React Packages, if show any error the process is aborted and the Developer need fix the source code.

In Use packages from this VSTS/TFS registry is necessary fill with Package Management name.

image.png

npm install - ReactOnAzure - This task perform the analysis of React Packages compatible with Microsoft Azure, if show any error the process is aborted and the Developer need fix the source code.

In Use packages from this VSTS/TFS registry is necessary fill with Package Management name.

image.png

Git Add - After success execution of Packages with Git Version, this process Add the files and commit in Git repository.

image.png

Git Push - This step perform Git Push on Git repository.

image.png

Artifact - FrontEnd Code to Release - this step compact the source code to Release process.

image.png

Publish Artifact: drop - this step publish the file with extension .ZIP to artifact of build definition.

image.png

Configure Branch Policies

Configure this Build Definition in master Git repository in Branch Policies on session Build Validation.

Select the master repository

image.png

Choose branch policies option

image.png

Select Build pipeline and Manual Trigger

image.png

image.png

Allow Enabled option

image.png

Clone this wiki locally