Skip to content

prasanjit-/devops_pipeline_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstration for CI/CD deployment pipeline using Jenkins

| Subscribe & Learn DevOps for Free! BINPIPE


Learning Resources for DevOps, SRE, Cloud & Engineering Management

BINPIPE Learn DevOps! BINPIPE

Deliverables: This demonstration will simulate a completely automated CI/CD deployment pipeline using Jenkins. It will essentially do the following steps (phases):

  1. Pull the source code for a Java EE based Project from GIT. (SCM AUTOMATION)
  2. Compile (build) the code using Maven to generate the .war file (BUILD AUTOMATION)
  3. Run Test cases & ensure they pass. (TEST AUTOMATION)
  4. Copy the .war to a Docker build workspace (DEPLOYMENT AUTOMATION)
  5. Build a Docker image for Jboss server to run the war file. (DEPLOYMENT AUTOMATION)
  6. Deploy the Docker container on a target node. (DEPLOYMENT AUTOMATION)

Prerequisites: This demonstration has the following prerequisites:

  1. Jenkins should be installed with git, maven and shell plugins.
  2. In Jenkins Server install using # yum -y install git maven docker before trying out this demo.
  3. Changes to be made for Jenkins to be able to run docker.
echo "jenkins ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
echo 'Defaults:jenkins !requiretty' >> /etc/sudoers
setenforce 0 # Else disable SELINUX in /etc/sysconfig/selinux  and reboot

Execution: Add a Jenkins Build Job As per the below screenshot and build it:

  • Note: Add the build commands from the jenkins_build_commands.md file.

Jenkins build job Jenkins build job Jenkins build job Jenkins build job Jenkins build job


BINPIPE aims to simplify learning for those who are looking to make a foothold in the industry. 
Write to me at nixgurus@gmail.com if you are looking for tailor-made training sessions. 
For self-study resources look around in this repository, the Binpipe Blog and Youtube Channel.

📒 Maintainer: Prasanjit Singh | binpipe.blogspot.com


License