Skip to content

Commit ba80625

Browse files
authored
Update Jenkinsfile
1 parent 0722e2a commit ba80625

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Diff for: Jenkinsfile

+21
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,26 @@ pipeline {
1717
build job: 'Deploy-to-staging'
1818
}
1919
}
20+
21+
stage ('Deploy to Production'){
22+
steps{
23+
timeout(time:5, unit:'DAYS'){
24+
input message:'Approve PRODUCTION Deployment?'
25+
}
26+
27+
build job: 'Deploy-to-Prod'
28+
}
29+
post {
30+
success {
31+
echo 'Code deployed to Production.'
32+
}
33+
34+
failure {
35+
echo ' Deployment failed.'
36+
}
37+
}
38+
}
39+
40+
2041
}
2142
}

0 commit comments

Comments
 (0)