Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit cc2a0fb

Browse files
committed
revert to shell echo
1 parent 0156c29 commit cc2a0fb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

vars/deployPlannerSnapshot.groovy

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ def call(body) {
3636
error "original image ${originalImageName} not replaced with ${newImage} in yaml: \n ${yaml}"
3737
}
3838
}
39-
// cant use writeFile as we have long filename errors
40-
def snapshotFile = new File('snapshot.yml')
41-
snapshotFile.write(yaml)
42-
// sh "echo '${yaml}' > snapshot.yml"
39+
// cant use writeFile as we are facing following error
40+
// Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods
41+
sh "echo '${yaml}' > snapshot.yml"
4342

4443
container('clients') {
4544
try {

0 commit comments

Comments
 (0)