I have a jenkinsfile in which a stage block is giving me durability error in which the console output shows a temp script on a temporary path. I have searched for this issue and could see various answers but it is still not resolving my error. Below is my block of code that is giving me error :
stage('Ant Initialize') {
steps {
sh '''#!/bin/bash -e
cd /sapcomm/zip/dxc-eshops/hybris/bin/platform
ant initialize
'''
}
and the error is below:
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Ant Initialize)
[Pipeline] sh
/var/lib/jenkins/workspace/dxceshop@tmp/durable-3524078f/script.sh.copy: line 3: durability: command not found
I have checked various articles on google and on jenkins website. one of the article mentions that it is bug :
https://issues.jenkins.io/browse/JENKINS-69122