projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge bug 542 from master to v6.0 with exceptions
[osm/devops.git]
/
jenkins
/
ci-pipelines
/
ci_stage_3.groovy
diff --git
a/jenkins/ci-pipelines/ci_stage_3.groovy
b/jenkins/ci-pipelines/ci_stage_3.groovy
index
e6264e5
..
935c670
100644
(file)
--- 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 ) {
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
}
sh """
export PATH=$PATH:/snap/bin