Parse full text.
This commit is contained in:
parent
3f2a76f40d
commit
faf6941dae
|
@ -6,8 +6,10 @@ String releaseURL = "https://code-repo.d4science.org/gCubeCI/gCubeRelease/raw/co
|
|||
//check and parse the release file
|
||||
println "Querying ${releaseURL}"
|
||||
def text = releaseURL.toURL().getText()
|
||||
def gcubeJSON = new JsonSlurper().parse
|
||||
def gcubeJSON = new JsonSlurper().parseText(text)
|
||||
println gcubeJSON
|
||||
println "body:"
|
||||
println gcubeJSON.body
|
||||
|
||||
//check that the release number parameter is the one expected
|
||||
assert gcubeJSON["gCube.version"] == params.gCube_release_number : "Release versions do not match!"
|
||||
|
|
Loading…
Reference in New Issue