Below is the code which iam using in Jenkinsfile
timeout(time:5, unit:\'MINUTES\') { println \'Please provide the env tag to cont