JOB 1:
If Developer pushes to developer branch then Jenkins will fetch from developer branch and deploy the website on the developer-docker environment ( Testing environment)
JOB 2:
If Developer pushes to master branch then Jenkins will fetch from the master branch and deploy on the master-docker environment ( Production environment) and use ngrok ( tunnel ) to connect to the world.
JOB 3:
This is the job managed by the Quality Assurance team. If the site is correct and meets the requirements, this job would be executed. It will go to GitHub, merge the developer branch with the master branch, and trigger JOB 2.
PREREQUISITES:
STEPS:
A repository is created locally with 2 branches- **Master **and **Developer **and the website content has been added.
Jenkins has been installed in our Redhat8 system. We have to start its service.
#jenkins #github #docker #devops #linux