From ba806258c845e1aeef85a2015aaa7bf820a040d7 Mon Sep 17 00:00:00 2001 From: James Lee Date: Thu, 26 Oct 2017 21:45:23 +0100 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 90aed79465..1695ba6a4b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,5 +17,26 @@ pipeline { build job: 'Deploy-to-staging' } } + + stage ('Deploy to Production'){ + steps{ + timeout(time:5, unit:'DAYS'){ + input message:'Approve PRODUCTION Deployment?' + } + + build job: 'Deploy-to-Prod' + } + post { + success { + echo 'Code deployed to Production.' + } + + failure { + echo ' Deployment failed.' + } + } + } + + } }