Access to the workspace with readFile().
This commit is contained in:
parent
07b17d6a7f
commit
84fbfae86e
|
@ -5,7 +5,7 @@ import groovy.io.FileType
|
|||
//locate where this jenkinsfile is
|
||||
|
||||
//check and parse the release file
|
||||
def releaseFile = readFileFromWorkspace("gcube-${params.gCube_release_number}.json")
|
||||
def releaseFile = readFile("releases/gcube-${params.gCube_release_number}.json")
|
||||
assert releaseFile.exists() : "Release file not found (expected gcube-${params.gCube_release_number}.json)"
|
||||
assert releaseFile.canRead() : "Release file cannot be read"
|
||||
def gcubeJSON = new JsonSlurper().parseText(releaseFile)
|
||||
|
|
Loading…
Reference in New Issue