X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fci-pipelines%2Fci_stage_3.groovy;h=6d0d00e0b2d297cdd0e24db307e16cd64732e564;hb=0a5c913fe39c3d18540511942b18970aed5ca141;hp=c36a512287e1cb321b48f076fa1d4c427b282004;hpb=5ec8d0adc7c03ec6a7c63f4d23302e2ab619cb82;p=osm%2Fdevops.git diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index c36a5122..6d0d00e0 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -35,7 +35,7 @@ properties([ booleanParam(defaultValue: false, description: '', name: 'SAVE_CONTAINER_ON_FAIL'), booleanParam(defaultValue: false, description: '', name: 'SAVE_CONTAINER_ON_PASS'), booleanParam(defaultValue: true, description: '', name: 'SAVE_ARTIFACTS_ON_SMOKE_SUCCESS'), - booleanParam(defaultValue: false, description: '', name: 'DO_STAGE_4'), + booleanParam(defaultValue: true, description: '', name: 'DO_STAGE_4'), booleanParam(defaultValue: true, description: '', name: 'DO_BUILD'), booleanParam(defaultValue: true, description: '', name: 'DO_INSTALL'), booleanParam(defaultValue: true, description: '', name: 'DO_SMOKE'), @@ -256,8 +256,14 @@ node("${params.NODE}") { } if ( params.DO_STAGE_4 ) { + // override stage_archive to only archive on stable + stage_archive = false 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 + } } }