Access to the workspace with readFile().

This commit is contained in:
Manuele Simi 2019-08-30 16:24:07 -04:00
parent 07b17d6a7f
commit 84fbfae86e
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -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)