generated from gCubeCI/Pipeline-Docker-Template
remove multiple steps from stage
This commit is contained in:
parent
d638ec5d4f
commit
c0164b40f0
|
@ -66,32 +66,27 @@ 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
|
// parse the report and extract the data
|
||||||
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) {
|
||||||
println "Deploy on going of component: $component"
|
println "Deploy on going of component: $component"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
sh "exit 1"
|
sh "exit 1"
|
||||||
}
|
}
|
||||||
}
|
sh '''
|
||||||
steps {
|
echo "cleanup $DEPLOY_FILE";
|
||||||
sh '''
|
if [ -f ${DEPLOY_BACKUP} ]; then
|
||||||
echo "cleanup $DEPLOY_FILE";
|
echo "backup found: ${DEPLOY_BACKUP} going to replace it";
|
||||||
if [ -f ${DEPLOY_BACKUP} ]; then
|
rm ${DEPLOY_BACKUP};
|
||||||
echo "backup found: ${DEPLOY_BACKUP} going to replace it";
|
mv ${DEPLOY_FILE} ${DEPLOY_BACKUP};
|
||||||
rm ${DEPLOY_BACKUP};
|
touch ${DEPLOY_FILE};
|
||||||
mv ${DEPLOY_FILE} ${DEPLOY_BACKUP};
|
fi
|
||||||
touch ${DEPLOY_FILE};
|
'''
|
||||||
fi
|
|
||||||
'''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Nothing to do by System ') {
|
stage('Nothing to do by System ') {
|
||||||
|
|
Loading…
Reference in New Issue