Skip to content
Permalink
Browse files

Better cleanup

  • Loading branch information
Jim Van Fleet
Jim Van Fleet committed Oct 18, 2016
1 parent a0019cc commit 494d9c5b6b8d033e526cbd0534a5a8d9e16faeb3
Showing with 2 additions and 1 deletion.
  1. +2 −1 Jenkinsfile
@@ -50,7 +50,6 @@ node('docker') {
dir('haproxy'){ dir('haproxy'){
sh 'docker build --rm -t my/haproxy . > debug' sh 'docker build --rm -t my/haproxy . > debug'
sh 'rm debug' sh 'rm debug'
sh 'docker rm haproxy'
} }
} catch(error) { } catch(error) {
def error_details = readFile('haproxy/debug'); def error_details = readFile('haproxy/debug');
@@ -124,6 +123,8 @@ def handleError(String message, String tag, Boolean doCleanup = true){
def cleanup(String tag) { def cleanup(String tag) {
try{ try{
sh 'bin/decompose.sh &> debug' sh 'bin/decompose.sh &> debug'
sh 'docker rm haproxy'
sh 'docker rmi my/haproxy'
sh 'bin/prune.sh &> debug' sh 'bin/prune.sh &> debug'
} catch(error) { } catch(error) {
def error_details = readFile('./debug'); def error_details = readFile('./debug');

0 comments on commit 494d9c5

Please sign in to comment.
You can’t perform that action at this time.