If Developer push to developer branch then Jenkins will fetch from developer and deploy on dev-docker environment.
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.
In 2nd job the jenkins is running the container and deploying the code from the developer branch
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
After the QA team will check the code if it is running or not then only 3rd job will run in which it will automatically merge the code from devleoper branch to the master branch then run a new prod env.
For any queries feel free to contact.
Linkedin profile: https://www.linkedin.com/in/akshat-soni-011b461a6
Github link: https://github.com/akshat-crypto/task1.git