generated from gCubeCI/Pipeline-Docker-Template
add catcherror test step
This commit is contained in:
parent
c6bbc0e18c
commit
d638ec5d4f
|
@ -76,6 +76,13 @@ pipeline {
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
steps {
|
||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||
sh "exit 1"
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh '''
|
||||
echo "cleanup $DEPLOY_FILE";
|
||||
if [ -f ${DEPLOY_BACKUP} ]; then
|
||||
|
|
Loading…
Reference in New Issue