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 {
99
99
stage("Prepare") {
100
100
steps {
101
101
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'
105
102
// Prepare output dir
106
103
sh 'rm -rf gwen/output/**'
107
104
sh 'mkdir -p gwen/output'
@@ -128,7 +125,7 @@ pipeline {
128
125
}
129
126
post {
130
127
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"
132
129
publishHTML(target: [
133
130
allowMissing : true,
134
131
alwaysLinkToLastBuild : false,
@@ -142,12 +139,6 @@ pipeline {
142
139
}
143
140
}
144
141
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
- }
151
142
failure {
152
143
script {
153
144
// something went wrong, raise alert here
You can’t perform that action at this time.
0 commit comments