add dynamic deploy stages to system stage

This commit is contained in:
Roberto Cirillo 2022-04-28 16:44:59 +02:00
parent 9e8b0c094b
commit 3f9de719d0
1 changed files with 7 additions and 4 deletions

11
Jenkinsfile vendored
View File

@ -73,12 +73,15 @@ pipeline {
def components = parseCSVList(deployList)
assert 0 < components.size(): "No component found"
for (component in components) {
println "Deploy on going of component: $component"
stage(component){
println "Deploy on going of component: $component"
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
sh "exit 0"
}
}
}
}
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
sh "exit 0"
}
sh '''
echo "cleanup $DEPLOY_FILE";
if [ -f ${BACKUP_FILE} ]; then