Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jleetutorial authored Oct 26, 2017
1 parent 0722e2a commit ba80625
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
}
}
}


}
}

0 comments on commit ba80625

Please sign in to comment.