diff --git a/Jenkinsfile b/Jenkinsfile index 18e61ff..988d3f2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -103,29 +103,10 @@ pipeline { steps { echo 'Cron build enabled. Deploy from system ongoing' script { - // parse the report and extract the data - // def components = getComponentsFromCSV(deployList) println "Going to check the deploy file in ${DEPLOY_FILE_ROOT_FOLDER}" - //def components =getComponentsFromCSVDir("${WORKSPACE}/CD") - //def components = readCSV file: 'CD/deploy.csv' - //readCSV(file: 'CD/deploy.csv').each { line , count-> - // if (line.toString().startsWith('#')) - // return - // line.get(0); - // def fields = line.toString().split(',') - // def components.add([ - // name : line.get(0), - // version : line.get(1), - // host : line.get(2) - // ] - // ) - // } def records = readCSV file: 'CD/deploy.csv' for (def record : records) { println("Processing record: "+record) - println ("field 0 "+record.get(0)) - println ("field 1 "+record.get(1)) - println ("field 2 "+record.get(2)) stage(record.get(0)){ println "Deploy on going of component: record.get(0)" catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') {