I have centralized deployment that is created as a "pipeline" item on Jenkins.
All of the services can be deployed from UAT to PRD using this pipeline.
This pipeline has the feature of:
if else cases configured in Jenkins
Any help will be greatly appreciated.
Within the Jenkins pipeline configuration menu, you can indicate a GitHub repository to pull and execute the Jenkinsfile script from, like shown below.
Then, if you want your pipeline script to run on every git push, you must setup a webhook within your GitHub repository that points to the Jenkins URL, and finally, activate the
GitHub hook trigger for GITScm polling checkbox in the pipeline configuration menu.
Do not forget to have the GitHub plugin installed.