File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,6 @@ pipeline {
9999 stage("Prepare") {
100100 steps {
101101 script {
102- // Clean up docker
103- sh 'docker rm -f $(docker ps -a -q) || true'
104- sh 'docker volume rm -f $(docker volume -q) || true'
105102 // Prepare output dir
106103 sh 'rm -rf gwen/output/**'
107104 sh 'mkdir -p gwen/output'
@@ -128,7 +125,7 @@ pipeline {
128125 }
129126 post {
130127 always {
131- sh "docker-compose -f gwen/docker-compose.yml -p ${env.BUILD_TAG.toLowerCase()} down -v || true"
128+ sh "docker-compose -f gwen/docker-compose.yml -p ${env.BUILD_TAG.toLowerCase()} down -v --remove-orphans || true"
132129 publishHTML(target: [
133130 allowMissing : true,
134131 alwaysLinkToLastBuild : false,
@@ -142,12 +139,6 @@ pipeline {
142139 }
143140 }
144141 post {
145- always {
146- script {
147- sh 'docker rm -f $(docker ps -a -q) || true'
148- sh 'docker volume rm -f $(docker volume -q) || true'
149- }
150- }
151142 failure {
152143 script {
153144 // something went wrong, raise alert here
You can’t perform that action at this time.
0 commit comments