Fix YAML definition and parser.
This commit is contained in:
parent
2131733ad2
commit
d248daff48
|
@ -10,11 +10,11 @@ def text = releaseURL.toURL().getText()
|
||||||
echo text
|
echo text
|
||||||
|
|
||||||
//parsing
|
//parsing
|
||||||
List jsonConfig = new Yaml().load(text)
|
def jsonConfig = new Yaml().load(text)
|
||||||
jsonConfig.each{println it.subject}
|
println jsonConfig.inspect()
|
||||||
|
echo "gCube v. ${jsonConfig.gCube_release}"
|
||||||
|
|
||||||
|
jsonConfig.gCube_release.Components.each{println it.subject}
|
||||||
echo "gcube v. ${objejsonConfigct['gCube_version']}"
|
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
gCube_version: 4.14.5
|
gCube_release:
|
||||||
|
Version: 4.14.5
|
||||||
Components:
|
Components:
|
||||||
SmartGear:
|
SmartGear:
|
||||||
- maven-parent
|
- maven-parent
|
||||||
|
|
Loading…
Reference in New Issue