From 76a6dc2add1821f60f30d6312bf4f841a775f601 Mon Sep 17 00:00:00 2001 From: madavi Date: Mon, 1 Jul 2019 13:24:55 +0530 Subject: [PATCH] bug 745 improvement fixed Change-Id: If08c4a78291166ac9e834f53f4578595b5a1fca9 Signed-off-by: madavi --- jenkins/ci-pipelines/ci_stage_3.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index 9620ead7..1a4c0091 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -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 \ -- 2.25.1