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)
|
def components = parseCSVList(deployList)
|
||||||
assert 0 < components.size(): "No component found"
|
assert 0 < components.size(): "No component found"
|
||||||
for (component in components) {
|
for (component in components) {
|
||||||
|
stage(component){
|
||||||
println "Deploy on going of component: $component"
|
println "Deploy on going of component: $component"
|
||||||
}
|
|
||||||
}
|
|
||||||
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
||||||
sh "exit 0"
|
sh "exit 0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
sh '''
|
sh '''
|
||||||
echo "cleanup $DEPLOY_FILE";
|
echo "cleanup $DEPLOY_FILE";
|
||||||
if [ -f ${BACKUP_FILE} ]; then
|
if [ -f ${BACKUP_FILE} ]; then
|
||||||
|
|
Loading…
Reference in New Issue