Parse full text.

This commit is contained in:
Manuele Simi 2019-08-30 22:43:32 -04:00
parent 3f2a76f40d
commit faf6941dae
1 changed files with 3 additions and 1 deletions

4
Jenkinsfile vendored
View File

@ -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!"