How can I approve a deployment and add an optional delay for the deployment
To solve the problem of role based approval i used input block with submitter. This means that person who listed as the submitter will only be able to give stage approvals.
stage('Approval') {
agent none
steps {
script...
techwithj.com1 min read