Continuous Integration is one of the most popular and core DevOps practices. Continuous Integration is a practice where code is committed to a shared repository such as Git, and the committed code is verified against static code analysis, automated build, and unit test cases.
- Let's create a build definition.
- Click on the Git repository and click on Set up build:
- Select a template Azure Web App and click on Apply:
- Keep only Get sources and Publish Artifact tasks.
- Click on Add Task and add Copy Files task to the Build definition:
- We want to copy all the files available from the Azure Functions project.
- Provide the details for Target Folder:
- Publish Artifact is used to make available files to be used in the Release definition:
- In the Triggers section, enable the Continuous Integration trigger. Now, if any new code is checked in, then Continuous Integration will take place:
- Click on Save. Our Build definition is ready.
In the next section, we will create the Release definition.