Fix YAML definition and parser.

This commit is contained in:
Manuele Simi 2019-09-02 22:49:14 -04:00
parent 2131733ad2
commit d248daff48
2 changed files with 6 additions and 5 deletions

View File

@ -10,11 +10,11 @@ def text = releaseURL.toURL().getText()
echo text
//parsing
List jsonConfig = new Yaml().load(text)
jsonConfig.each{println it.subject}
def jsonConfig = new Yaml().load(text)
println jsonConfig.inspect()
echo "gCube v. ${jsonConfig.gCube_release}"
echo "gcube v. ${objejsonConfigct['gCube_version']}"
jsonConfig.gCube_release.Components.each{println it.subject}
pipeline {
agent any

View File

@ -1,5 +1,6 @@
gCube_version: 4.14.5
gCube_release:
Version: 4.14.5
Components:
SmartGear:
- maven-parent