removed component array

This commit is contained in:
Roberto Cirillo 2022-09-30 17:42:51 +02:00
parent 4868c68c96
commit 081b52280e
1 changed files with 6 additions and 17 deletions

19
Jenkinsfile vendored
View File

@ -122,28 +122,17 @@ pipeline {
def records = readCSV file: 'CD/deploy.csv'
for (def record : records) {
println("Processing record: "+record)
// if (record.toString().startsWith('#')) return;
println ("field 0 "+record.get(0))
println ("field 1 "+record.get(1))
println ("field 2 "+record.get(2))
}
println(components)
if (components.size() > 0) {
def componentSet=components.toSet();
for (component in componentSet) {
stage(component){
println "Deploy on going of component: $component"
stage(record.get(0)){
println "Deploy on going of component: record.get(0)"
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') {
checkup("${component.name}", "${component.version}", "${component.host}");
deploy("${component.name}", "${component.version}", "${component.host}");
checkup(record.get(0), record.get(1), record.get(2));
deploy(record.get(0), record.get(1), record.get(2)s);
}
}
}
}else{
println "No components found"
}
}
cleanup(DEPLOY_FILE,BACKUP_FILE);
}
}