generated from gCubeCI/Pipeline-Docker-Template
fixing parsing function
This commit is contained in:
parent
4f6ab3dfcd
commit
23e0516369
|
@ -60,7 +60,6 @@ pipeline {
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
echo 'Cron build enabled. Deploy from system ongoing'
|
echo 'Cron build enabled. Deploy from system ongoing'
|
||||||
echo 'Components to deploy:'
|
|
||||||
script {
|
script {
|
||||||
// parse the report and extract the data
|
// parse the report and extract the data
|
||||||
def components = parseDeployComponent(deployList)
|
def components = parseDeployComponent(deployList)
|
||||||
|
@ -143,7 +142,7 @@ pipeline {
|
||||||
def parseDeployComponent(def deployList) {
|
def parseDeployComponent(def deployList) {
|
||||||
println "Going to parsing file ${deployList}"
|
println "Going to parsing file ${deployList}"
|
||||||
def components = []
|
def components = []
|
||||||
new File("${deployList}").splitEachLine(',') { columns ->
|
readFile(file: "${deployList}").splitEachLine(',') { columns ->
|
||||||
if (columns[0].startsWith('#') || columns[0].startsWith('Component'))
|
if (columns[0].startsWith('#') || columns[0].startsWith('Component'))
|
||||||
return
|
return
|
||||||
components.add([
|
components.add([
|
||||||
|
|
Loading…
Reference in New Issue