From the course: Jenkins Essential Training

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Solution: Improve a Docker agent pipeline

Solution: Improve a Docker agent pipeline - Jenkins Tutorial

From the course: Jenkins Essential Training

Solution: Improve a Docker agent pipeline

- [Instructor] In this challenge, we're trying to speed up a pipeline that uses a Docker agent. I'm starting out by connecting to my Jenkins server via SSH to confirm that Docker is installed. I'll check that by running Docker -- version and then Docker PS. These two commands run fine which lets me know that the Docker service is running and ready to process commands. Next, I need to make sure my Jenkins server has the Docker pipeline plugin installed. I'm in the Jenkins web console now on the plugin management page. I filtered for the Docker pipeline plugin on the installed tab and, sure enough, I have the plugin installed and ready to go. Now let's go to the pipeline job that uses a go lang Docker agent in a pipeline. I've used the exercise files to create a pipeline that builds the hugo static site generator. The pipeline uses a golang image from a public repo for the Docker agent. Under that, the pipeline sets up an…

Contents