How to apply CI/CD to applications
1. Configure Build agents.
Deploy agents to Build Machines.
2. Configure Deploy agents.
Deploy agents to Application Server.
Configuring CI helps you build application as soon as changes are checked in (configurable).
4. Set correct Server Path
5. Select ASP.NET template
6. Select desired Agent Pool and set Artifact Name.
7. Set proper Agent Name.
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
9. Add New Agent Job to build Angular project.
10. Set Proper Agent Job Name
11. Add a NPM task to the Job. This Task is used to install NPM
12. Set Correct properties for NPM install Task.
13. Add a NPM task to the Job. This Task is used to build the angular project.
14. Set Correct properties for Angular build task.
15. Add Publish Task to Job
16. Set Correct Publish Tasks Configuration.
17. Click Save & Queue to build both API and UI
Continuous Delivery will deploy Build Artifacts from Continuous Build to Application Server using Build Agents.
Go to Piplines > Releases. and click New pipeline.