Don't save artifacts on stage_4 failure 25/6825/1
authorMichael Marchetti <mmarchetti@sandvine.com>
Wed, 31 Oct 2018 22:02:49 +0000 (22:02 +0000)
committerMichael Marchetti <mmarchetti@sandvine.com>
Wed, 31 Oct 2018 22:02:49 +0000 (22:02 +0000)
Signed-off-by: Michael Marchetti <mmarchetti@sandvine.com>
jenkins/ci-pipelines/ci_stage_3.groovy

index c36a512..ce3aef6 100644 (file)
@@ -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
+                    }
                 }
             }