Try relative path.
This commit is contained in:
parent
dababd3086
commit
a2740cb38f
|
@ -1,7 +1,7 @@
|
||||||
import groovy.json.JsonSlurper
|
import groovy.json.JsonSlurper
|
||||||
|
|
||||||
//check and parse the release file
|
//check and parse the release file
|
||||||
def inputFile = new File("releases/gcube-${params.gCube_release_number}.json")
|
def inputFile = new File("./releases/gcube-${params.gCube_release_number}.json")
|
||||||
assert inputFile.exists() : "Release file not found (expected gcube-${params.gCube_release_number}.json)"
|
assert inputFile.exists() : "Release file not found (expected gcube-${params.gCube_release_number}.json)"
|
||||||
assert inputFile.canRead() : "Release file cannot be read"
|
assert inputFile.canRead() : "Release file cannot be read"
|
||||||
def gcubeJSON = new JsonSlurper().parseText(inputFile)
|
def gcubeJSON = new JsonSlurper().parseText(inputFile)
|
||||||
|
|
Loading…
Reference in New Issue