From c06b48be893c07fe52da8d83e16f114c33295ae6 Mon Sep 17 00:00:00 2001 From: devops Date: Wed, 16 Sep 2026 13:34:06 +0000 Subject: [PATCH] fix: approval input ko simple proceed/abort banaya --- Jenkinsfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 97dfbcd..13d546c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -199,14 +199,13 @@ assert r['version'] == '${IMAGE_TAG}', 'version galat!' script { // Enterprise gate: insaan ki manzoori ke bina production par kuch nahi. // 15 min me jawab na aaye to build abort - production safe rehta hai. + // Simple proceed/abort input. Parameters wale input ko + // API se submit karna jhanjhat hai; UI ke liye bhi ye saaf hai. timeout(time: 15, unit: 'MINUTES') { - env.APPROVED = input( - message: "Staging theek hai. Production par ${env.IMAGE_TAG} deploy karein?", - ok: 'Deploy to Production', - parameters: [choice(name: 'DECISION', choices: ['Deploy', 'Abort'], description: '')] - ) + input(message: "Staging par ${env.IMAGE_TAG} verified hai. PRODUCTION par deploy karein?", + ok: 'Deploy to Production') } - if (env.APPROVED != 'Deploy') { error('Production deploy user ne rok diya') } + echo "Production deploy approve ho gaya" } } }