Job Description For Genpact Off Campus Drive 2023

Genpact Off Campus Drive 2023 Off Campus Jobs Walkin Drive and Recruitment Eligibility, Careers, Salary, Syllabus, Exam Pattern, Selection Process: Genpact Company will be seeking candidates for…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Creating a developer friendly automation system with jenkins

In this article i am creating a automation system in which we have a developer branch in git and a master branch in git .The developer push the code to the dev branch and in our master branch is the code of our existing site.
Now the testing team launches both the codes present in the developer and the master and if the code in dev branch is working fine the team will merge the master and dev branch

Now for this i have created 3 jobs in jenkins

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

First i provided the url of the github repo of our dev branch .

Now after providing the link we copy the data of our dev branch into the folder and after copying it i run a httpd web server docker container to test the code

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

Now providing the url of our github repo and providing it for the master branch.

After providing the url of our github repo we launch a docker container by using a master branch code.

Now we manually go and see the container in which the dev branch code is running and if it is running fine we merge the code of our dev branch into the master.

JOB3 — 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

SO in this job we merge the content so we have to provide the github credentials

Now we build a post-build actions and in that we merge the contents of dev branch to master branch and again launch the master container after updating the code of our website!!

After running the last job we see that our code in master branch gets updated

Now the code is deployed in master branch also!

Thanks for reading it and if you like it please give a clap!!!!

Add a comment

Related posts:

Newsletters AB Testing

In the whole cycle of optimizing your marketing strategies AB testing is a great tool, your newsletter mustn’t be forgotten. Make sure your newsletter is of added value to your audience and is of…

Can Corporate Cannabis Ever Be Craft?

Many business savvy and well-funded individuals are looking to get a piece of the legal cannabis pie as legalization begins to dawn on the country. But simply having a business model, a licensed…

Design Ops in DfE Weeknotes 5

We tested the prototype for booking and managing a discovery peer review and learned a bunch of stuff. The aim of the service will be to provide a single place to find out about, book and manage…