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