From: Michael Marchetti Date: Wed, 31 Oct 2018 22:02:49 +0000 (+0000) Subject: Don't save artifacts on stage_4 failure X-Git-Tag: v5.0.0~47 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=0550e3ddfe0b00213d97e445936c56e8ca5cda67;p=osm%2Fdevops.git Don't save artifacts on stage_4 failure Signed-off-by: Michael Marchetti --- 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 + } } }