Chrysolites Tech Academy

Video by freeCodeCamp.org · taught by Gwendolyn Faraday · streamed from YouTube. All rights remain with the creator.

Lesson 3: CI/CD Pipelines with Jenkins and Docker

About this lesson

This hands-on course, developed by Gwendolyn Faraday, teaches Jenkins by building a complete continuous integration and delivery pipeline for a web application. It begins with an overview of the course and an explanation of what Jenkins is and why it is so widely used to automate building, testing and deploying software. The key terms are then defined, from jobs and builds to pipelines, stages and agents, before the architecture of the project is laid out: code hosted on GitHub, a Jenkins server and an application server running Debian Linux in the cloud on Linode, and Docker with Docker Hub to package and store the application. After a short introduction to Linode, you set up Jenkins on a fresh server and take a tour of its web interface. The course installs the plugins the project needs, including Blue Ocean, a more modern interface that shows each pipeline as a clear series of stages. You then create a first pipeline, install Git on the server so Jenkins can fetch code, and write a Jenkinsfile that defines the pipeline as code stored in the repository. You see how to update the pipeline by editing that file, and how to run the build and test steps of a Node.js project with npm. The final part brings in Docker, building an image of the application and pushing it to Docker Hub so it can be deployed consistently, before closing remarks on where to go next. Some familiarity with the Linux command line and Git is helpful. Afterwards, read Chapter 3 of the course book, which walks through a Jenkinsfile line by line.

Install Chrysolites Tech Academy

Android / Chrome / Edge: open the browser menu and choose Install app or Add to Home screen.

iPhone / iPad (Safari): tap the Share button, then Add to Home Screen.