IDEA : When developer pushes his code on GitHub on a different branch, our tester can do QAT and if it is passed then it’ll merge with our master branch.

So There are Three Jobs we’re going to make

JOB 1: It will download the github repo from your repository of developer branch and copy the content to a new folder and then will launch a new container running that code. I have used Poll SCM trigger for my job1.

JOB2: Similarly to JOB1 it will download the github repo from your repository of master branch and copy the content to a new folder and then will launch a new container running that code. I have used Build after other project trigger so that job2 automatically starts if JOB1 status is Success.

JOB3: After doing QAT of developer code the JOB3 will merge the developer branch with master branch and will delete the testing environment. To trigger this job i have used trigger builds remotely so from there you will get URL and type the URL in your browser to start the JOB3 automatically.

This is how all the jobs would look like

Github URL: https://github.com/Apeksh742/test_and_deploy/tree/master

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store