bug 745 improvement fixed 30/7730/1
authormadavi <jm00553988@techmahindra.com>
Mon, 1 Jul 2019 07:54:55 +0000 (13:24 +0530)
committermadavi <jm00553988@techmahindra.com>
Mon, 1 Jul 2019 07:54:55 +0000 (13:24 +0530)
Change-Id: If08c4a78291166ac9e834f53f4578595b5a1fca9
Signed-off-by: madavi <jm00553988@techmahindra.com>
jenkins/ci-pipelines/ci_stage_3.groovy

index 9620ead..1a4c009 100644 (file)
@@ -229,7 +229,9 @@ node("${params.NODE}") {
                     {
                         repo_base_url = "-u ${params.REPOSITORY_BASE}"
                     }
-                    sh "docker stack list |  awk '{ print \$1 }'| xargs docker stack rm"
+                                       if ( params.DO_STAGE_4 ) {
+                        sh "docker stack list |  awk '{ print \$1 }'| xargs docker stack rm"
+                                       }
                     sh """
                         export PATH=$PATH:/snap/bin
                         installers/full_install_osm.sh -y -s ${container_name} --test --nolxd --nodocker --nojuju --nohostports --nohostclient \