CI/CD with Jenkins

Setting up a GitHub webhook in Jenkins

  1. Install Plugin
  2. Within the Dashboard, select Manage Jenkins on the left.
  3. On the Configuration page, select Manage Plugins.
  4. Manage Plugins page will give you a tabbed interface. Click Available to view all the Jenkins plugins that can be installed.
  5. Using the search box, search for gitlab plugin. There are multiple Docker plugins, select plugin using the checkbox.

cicd1cicd2cicd3cicd4-1cicd4-2

 

Building Docker Images using Jenkins

  1. Install Plugin
  2. Within the Dashboard, select Manage Jenkins on the left.
  3. On the Configuration page, select Manage Plugins.
  4. Manage Plugins page will give you a tabbed interface. Click Available to view all the Jenkins plugins that can be installed.
  5. Using the search box, search for Docker plugin. There are multiple Docker plugins, select Docker plugin using the checkbox.
  6. While on this page, install the Git plugin for obtaining the source code from a Git repository.
  7. Click Install without Restart at the bottom.
  8. The plugins will now be downloaded and installed. Once complete, click the link Go back to the top page.
  9. Your Jenkins server can now be configured to build Docker Images.

cicd1cicd2cicd3cicd4cicd5

 

Leave a comment