generated from gCubeCI/Pipeline-Docker-Template
removed unused methods, clean code
This commit is contained in:
parent
5debaa7edd
commit
c9db997000
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue