Skip to content

Commit

Permalink
Better cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Oct 18, 2016
1 parent a0019cc commit 494d9c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ node('docker') {
dir('haproxy'){
sh 'docker build --rm -t my/haproxy . > debug'
sh 'rm debug'
sh 'docker rm haproxy'
}
} catch(error) {
def error_details = readFile('haproxy/debug');
Expand Down Expand Up @@ -124,6 +123,8 @@ def handleError(String message, String tag, Boolean doCleanup = true){
def cleanup(String tag) {
try{
sh 'bin/decompose.sh &> debug'
sh 'docker rm haproxy'
sh 'docker rmi my/haproxy'
sh 'bin/prune.sh &> debug'
} catch(error) {
def error_details = readFile('./debug');
Expand Down

0 comments on commit 494d9c5

Please sign in to comment.