Skip to content

Latest commit

 

History

History
84 lines (64 loc) · 2.85 KB

File metadata and controls

84 lines (64 loc) · 2.85 KB

CI/CD

How to apply CI/CD to applications

Steps

1. Configure Build agents.

Deploy agents to Build Machines.

alt alt alt

2. Configure Deploy agents.

Deploy agents to Application Server.

alt alt alt

3. Configure CI.

Configuring CI helps you build application as soon as changes are checked in (configurable).

Steps

1. Goto to Pipeline(1)

2. Goto to Builds(2)

3. Click New Pipeline(3)

Create pipeline

4. Set correct Server Path

Set correct Server Path

5. Select ASP.NET template

alt

6. Select desired Agent Pool and set Artifact Name.

Agent Pool

7. Set proper Agent Name.

alt

8. In Build Solution task set MSBuild Arguments as

/p:DeployOnBuild=true /p:PackageAsSingleFile=true /p:_PackageTempDir="$(build.artifactstagingdirectory)" /p:DeployTarget=Package /p:AutoParameterizationWebConfigConnectionStrings=False

alt

9. Add New Agent Job to build Angular project.

Add agent Job

10. Set Proper Agent Job Name

alt

11. Add a NPM task to the Job. This Task is used to install NPM

alt

12. Set Correct properties for NPM install Task.

alt

13. Add a NPM task to the Job. This Task is used to build the angular project.

alt

14. Set Correct properties for Angular build task.

alt

15. Add Publish Task to Job

alt

16. Set Correct Publish Tasks Configuration.

alt alt

17. Click Save & Queue to build both API and UI

alt

4. Configure CD

Continuous Delivery will deploy Build Artifacts from Continuous Build to Application Server using Build Agents.

Go to Piplines > Releases. and click New pipeline. alt alt alt alt alt alt alt alt alt