-
Notifications
You must be signed in to change notification settings - Fork 13
Configure Liquid Smart Hotel CI for .Net Core from Release to Master
| 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.
The first step is to create a build task by importing the Json file or template into VSTS.
Click the**+Import** Button e choose your template file with JSON Format.

After selecting the JSON file, click the Import button

Another option is to create the build task by using a VSTS Template.
Click the +New button.

Modify the pipeline name to LiquidSmartHotel_Build_PullRequest_ReleaseOnMaster or other name of your choice.
Choose the Repository with Liquid Smart Application.


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

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

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

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

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.

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

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

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

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

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

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

