Merge "Disable parallel make for easier debugging"
[osm/devops.git] / jenkins / ci-pipelines / ci_stage_3.groovy
index 49b4b72..ec4cdaf 100644 (file)
@@ -176,7 +176,7 @@ node("${params.NODE}") {
         if ( params.DO_BUILD ) {
             stage("Build") {
                 sh "make -C docker clean"
-                sh "make -j4 -C docker CMD_DOCKER_ARGS= TAG=${container_name} RELEASE=${params.RELEASE} REPOSITORY_BASE=${repo_base_url} REPOSITORY_KEY=${params.REPO_KEY_NAME} REPOSITORY=${params.REPO_DISTRO}"
+                sh "make -C docker Q= CMD_DOCKER_ARGS= TAG=${container_name} RELEASE=${params.RELEASE} REPOSITORY_BASE=${repo_base_url} REPOSITORY_KEY=${params.REPO_KEY_NAME} REPOSITORY=${params.REPO_DISTRO}"
             }
         }
 
@@ -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('UNSTABLE') ) {
+                        stage_archive = params.SAVE_ARTIFACTS_ON_SMOKE_SUCCESS
+                    }
                 }
             }