X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fci-pipelines%2Fci_stage_3.groovy;h=935c670887f5acf21bfa827871f8a175ac73f46b;hb=5afef118884aa51c1850ec77717f27d4ea0b42d8;hp=e6264e593c943d339311ca458486b943d4e03382;hpb=e84eb2c167a02f7531f47dee9d89587674ca72f9;p=osm%2Fdevops.git diff --git a/jenkins/ci-pipelines/ci_stage_3.groovy b/jenkins/ci-pipelines/ci_stage_3.groovy index e6264e59..935c6708 100644 --- a/jenkins/ci-pipelines/ci_stage_3.groovy +++ b/jenkins/ci-pipelines/ci_stage_3.groovy @@ -230,7 +230,12 @@ node("${params.NODE}") { repo_base_url = "-u ${params.REPOSITORY_BASE}" } if ( params.DO_STAGE_4 ) { - sh "docker stack list | grep v60 | awk '{ print \$1 }'| xargs docker stack rm" + try { + sh "docker stack list | grep v60 | awk '{ print \$1 }'| xargs docker stack rm " + } + catch (caughtError) { + println("FAILURE:: Docker remove gave exception, pls check & remove old dockers manually, if required !!!") + } } sh """ export PATH=$PATH:/snap/bin