From 046b6665632fafbd4a62d116f92fbd2344580128 Mon Sep 17 00:00:00 2001 From: Mike Marchetti Date: Mon, 24 Sep 2018 14:44:55 -0400 Subject: [PATCH] archive only on smoke success Change-Id: I03ddd769d387af7d8085ca21e946aef7d63ef58c Signed-off-by: Mike Marchetti --- jenkins/ci-pipelines/ci_stage_3.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 49b4b72f..609708af 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -235,7 +235,10 @@ node("${params.NODE}") { stage("Smoke") { run_systest(container_name,container_name,"smoke") // archive smoke success until stage_4 is ready - stage_archive = params.SAVE_ARTIFACTS_ON_SMOKE_SUCCESS + + if ( currentBuild.result.equals('SUCCESS') ) { + stage_archive = params.SAVE_ARTIFACTS_ON_SMOKE_SUCCESS + } } } -- 2.25.1