Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10
Continuous
Integration (CI) Week 5: CI Concepts and Azure DevOps Pipelines Session Objectives
• By the end of this session, students will:
– Understand Continuous Integration (CI), its benefits, and best practices. – Learn how to set up a CI pipeline using Azure DevOps Pipelines and Repos. – Prepare for a mini-project to implement a CI pipeline for a sample application. What is Continuous Integration (CI)?
– CI is the practice of automatically integrating code changes into a
shared repository multiple times a day. – Automated builds and tests ensure that code changes do not introduce bugs. – The goal is to improve software quality and reduce time to market. Benefits of Continuous Integration (CI)
– Early Detection of Bugs: Integration issues are detected early, reducing
costs. – Faster Release Cycles: CI enables quicker and more frequent releases. – Improved Collaboration: CI promotes teamwork by encouraging frequent code commits. – Reduced Risk: Frequent integrations minimize the risk of system failures. CI Best Practices
– Frequent Code Commits: Commit small, frequent changes to catch
issues early. – Automated Builds: Ensure every commit triggers a build to check code integrity. – Automated Testing: Include tests in the CI pipeline to validate code changes. – Maintain a Green Build: Ensure that the main branch is always stable. – Use Pull Requests: Enforce code reviews and testing before merging code. Introduction to Azure DevOps
– Azure DevOps is a platform that manages the full software
development lifecycle. – Key Features: Pipelines (CI/CD), Repos (Git repositories), Boards (task tracking). – Pipelines automate builds, tests, and deployments. Setting Up an Azure DevOps Pipeline
– Step 1: Create a new project in Azure DevOps.
– Step 2: Add code to Azure Repos (Git repository). – Step 3: Set up a new pipeline in the Pipelines section. – Step 4: Define build steps such as compiling code and running tests. – Step 5: Automate testing and set up CI triggers to run on new commits. Demonstration: Building a CI Pipeline
– Demo: Walk through creating a sample CI pipeline in Azure DevOps.
– Show how to link the pipeline to a Git repository and automate builds. – Monitor the pipeline status and view build/test logs. Homework Assignment
– Mini-Project: Implement a CI pipeline for a sample application in Azure
DevOps. – Include automated builds and tests in the pipeline. – Set up a trigger to run the pipeline when code is pushed to the repository. – Submit the pipeline URL and a short write-up explaining the implementation. Q&A
– Questions and Discussion: Encourage students to ask questions about
CI and pipelines. – Open floor for clarifications and additional discussions.