generated from gCubeCI/Pipeline-Docker-Template
add dynamic deploy stages to system stage
This commit is contained in:
parent
9e8b0c094b
commit
3f9de719d0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue