Skip to content

Commit

Permalink
revert to shell echo
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavgore09 committed Feb 9, 2018
1 parent 0156c29 commit cc2a0fb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions vars/deployPlannerSnapshot.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cc2a0fb

Please sign in to comment.