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

Configure Liquid Smart Hotel CI for .Net Core 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 Smart Hotel CI for .Net Core from Release to Master

This topic explain the procedures to configure the Continuous Integration through build task for .Net Core components.

Configure a Pipeline Task

The first step is to create a build task by importing the Json file or template into VSTS.

Importing JSON File

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

image.png

After selecting the JSON file, click the Import button

image.png

Create a Pipeline Build Task From VSTS Template

Another option is to create the build task by using a VSTS Template.

Click the +New button. image.png

Configuring Build Task to .Net Core components

Modify the pipeline name to LiquidSmartHotel_Build_PullRequest_ReleaseOnMaster or other name of your choice.

Choose the Repository with Liquid Smart Application.

image.png

image.png

Allow the option Allow scripts to access the OAuth token this feature is responsible to integrate VSTS with powershell functions.

image.png

Use NuGet 4.3.0 - this task allow the integration between VSTS Agent with Nuget package dependencies.

image.png

NuGet restore - this task perform the restore of all solutions mapped in Repository.

In Feed to use, select the option Feed(s) I select here

Allow the option Use packages from NuGet.org

image.png

To configure Code Analysis is necessary fill the fields in Prepare analysis on SonarCloud,

SonarCloud Service Endpoint: Endpoint created in VSTS with access in Sonar Cloud.
Organization: Organization provisioned on SonarCloud during configuration of Endpoint. Project Key: Project identificator of SonarCloud with storage metrics. Project Name: Friendly name of Project Key

image.png

This task below realize the discovery delta code based in Monorepo concept, the feature branch is compared with develop.

In Script Path is necessary fill the field with script DiscoverChangedFiles.ps1.

image.png

After discover delta code, the next task will execute the clean process of solutions.

image.png

This task perform the Build Process based in Monorepo concept, the binary files is stored in Artifactory Staging Directory.

image.png

Run Code Analysis - After build of Solutions, this task will analyze the source code based in rules and profiles of Sonar Cloud.

image.png

Publish Quality Gate Result - this step publish the metrics on Sonar Cloud which can be accessed by Sonar Cloud with link on build definition.

image.png

Unit Tests - this task is responsible to Unit Tests for Liquid Smart Hotel Application, after execution the results will be published in build definition.

image.png

Build Services - This task perform the docker compose of containers of applications.

image.png

image.png

Clone this wiki locally