diff --git a/vars/deployPlannerSnapshot.groovy b/vars/deployPlannerSnapshot.groovy index 7c443dda..f898ee78 100644 --- a/vars/deployPlannerSnapshot.groovy +++ b/vars/deployPlannerSnapshot.groovy @@ -36,10 +36,9 @@ def call(body) { error "original image ${originalImageName} not replaced with ${newImage} in yaml: \n ${yaml}" } } - // cant use writeFile as we have long filename errors - def snapshotFile = new File('snapshot.yml') - snapshotFile.write(yaml) - // sh "echo '${yaml}' > snapshot.yml" + // cant use writeFile as we are facing following error + // Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods + sh "echo '${yaml}' > snapshot.yml" container('clients') { try {