archive only on smoke success
[osm/devops.git] / jenkins / ci-pipelines / ci_stage_3.groovy
index 49b4b72..609708a 100644 (file)
@@ -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
+                    }
                 }
             }