Skip to content

yashmit28/task1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

AUTOMATION in DevOps through GIT+DOC+JEN

Project Details:-

Their would be 3 job performed:-

JOB:1

If Developer push to dev branch then Jenkins will fetch from dev and deploy on dev-docker environment.

JOB:2

If Developer push to master branch then Jenkins will fetch from master and deploy on master-docker environment. both dev-docker and master-docker environment are on different docker containers.

JOB:3

Manually the QA team will check (test) for the website running in dev-docker environment. If it is running fine then Jenkins will merge the dev branch to master branch and trigger #job 2 Now Start the automation:-

JOB:1

  1. First create git repository:-
  2. Create Dev and Master Branch Screenshot (79) --> create hook to connect gitbash to github for pull the cade by jenkins. hooks

-->Configure job in jenkins to fetch from dev:- j1

--> After that fetch dev branch in dev docker environment. j2

Execute shell part :- sudo cp -rvf index.html /root/devfile if sudo docker ps | grep devenv then echo “already running” else sudo docker run -dit -p 8083:80 -v /root/devfile:/usr/local/apache2/hotdocs — name devenv httpd fi

JOB:2

Configure job in jenkins to fetch from master:-

j3

j4

Execute shell part:-sudo cp -rvf index.html /root/masterfile if sudo docker ps | grep masterfile then echo “already running” else sudo docker run -dit -p 8085:80 -v /root/masterfile:/usr/local/apache2/hotdocs — name masterenv httpd fi

JOB:3

Configure testing_job in jenkins:-

j5

Output

o1 o2 o3

Yashmit Sharma

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages