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
|
||||
|
||||
//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
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
gCube_version: 4.14.5
|
||||
gCube_release:
|
||||
Version: 4.14.5
|
||||
Components:
|
||||
SmartGear:
|
||||
- maven-parent
|
||||
|
|
Loading…
Reference in New Issue