removed unused methods, clean code

This commit is contained in:
Roberto Cirillo 2022-09-30 18:06:24 +02:00
parent 5debaa7edd
commit c9db997000
1 changed files with 0 additions and 19 deletions

19
Jenkinsfile vendored
View File

@ -103,29 +103,10 @@ pipeline {
steps { steps {
echo 'Cron build enabled. Deploy from system ongoing' echo 'Cron build enabled. Deploy from system ongoing'
script { script {
// parse the report and extract the data
// def components = getComponentsFromCSV(deployList)
println "Going to check the deploy file in ${DEPLOY_FILE_ROOT_FOLDER}" 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' def records = readCSV file: 'CD/deploy.csv'
for (def record : records) { for (def record : records) {
println("Processing record: "+record) 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)){ stage(record.get(0)){
println "Deploy on going of component: record.get(0)" println "Deploy on going of component: record.get(0)"
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') { catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') {