Merge "Disable parallel make for easier debugging"
[osm/devops.git] / jenkins / ci-pipelines / ci_stage_3.groovy
index 609708a..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}"
             }
         }
 
@@ -236,7 +236,7 @@ node("${params.NODE}") {
                     run_systest(container_name,container_name,"smoke")
                     // archive smoke success until stage_4 is ready
 
-                    if ( currentBuild.result.equals('SUCCESS') ) {
+                    if ( ! currentBuild.result.equals('UNSTABLE') ) {
                         stage_archive = params.SAVE_ARTIFACTS_ON_SMOKE_SUCCESS
                     }
                 }