generated from gCubeCI/Pipeline-Docker-Template
clean code
This commit is contained in:
parent
cd4b7056cc
commit
45c63abf0f
|
@ -156,21 +156,3 @@ def parseDeployComponent(def deployList) {
|
||||||
return components
|
return components
|
||||||
}
|
}
|
||||||
|
|
||||||
//a non CPS method is necessary for the usage of splitEachLine()
|
|
||||||
@NonCPS
|
|
||||||
def oldparseDeployComponentOld(def deployList) {
|
|
||||||
println "Going to parsing file ${deployList}"
|
|
||||||
def components = []
|
|
||||||
"${deployList}".splitEachLine(',') { columns ->
|
|
||||||
if (columns[0].startsWith('#') || columns[0].startsWith('GroupID'))
|
|
||||||
return
|
|
||||||
components.add([
|
|
||||||
name : columns[1],
|
|
||||||
version : columns[2],
|
|
||||||
gitRepo : columns[3],
|
|
||||||
commitID: columns[4]
|
|
||||||
]
|
|
||||||
)
|
|
||||||
}
|
|
||||||
return components
|
|
||||||
}
|
|
Loading…
Reference in New Issue