From 0550e3ddfe0b00213d97e445936c56e8ca5cda67 Mon Sep 17 00:00:00 2001 From: Michael Marchetti Date: Wed, 31 Oct 2018 22:02:49 +0000 Subject: [PATCH] Don't save artifacts on stage_4 failure Signed-off-by: Michael Marchetti --- jenkins/ci-pipelines/ci_stage_3.groovy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index c36a5122..ce3aef69 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -258,6 +258,10 @@ node("${params.NODE}") { if ( params.DO_STAGE_4 ) { stage("stage_4") { run_systest(container_name,container_name,"openstack_stage_4",params.HIVE_VIM_1) + + if ( ! currentBuild.result.equals('UNSTABLE') ) { + stage_archive = keep_artifacts + } } } -- 2.25.1