How to Set Input Parameters in Jenkins Pipeline (Groovy Script)
Recently have received a requirement in Jenkins Pipeline deployment with User Input parameters either Yes or No. This option should be ask before start the stages in the Pipeline deployment . This will be used for production release.
This post will walk through steps below, how do we add that option, It would be helps which someone click on the "Build Now" button unfortunately the production deployment started and may face some problem. To prevent this problem we have an option in the Jenkins Groovy pipeline script.
Just add the script code below on the top of the Pipeline starts,