From: Mike Marchetti Date: Mon, 24 Sep 2018 18:44:55 +0000 (-0400) Subject: archive only on smoke success X-Git-Tag: v5.0.0~99 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F6554%2F1;p=osm%2Fdevops.git archive only on smoke success Change-Id: I03ddd769d387af7d8085ca21e946aef7d63ef58c Signed-off-by: Mike Marchetti --- 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 + } } }