Skip to content

Commit

Permalink
Better haproxy label
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Sep 12, 2016
1 parent 2c31ad7 commit c670a8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ node('docker') {

try{
dir('haproxy'){
sh 'docker build --rm my/haproxy .'
sh 'docker build --rm -t my/haproxy . %> debug'
sh 'rm debug'
}
} catch(error) {
def error_details = readFile('./debug');
def error_details = readFile('haproxy/debug');
def message = "BUILD ERROR: There was a problem building Shibboleth appliance haproxy image (${tag}). \n\n ${error_details}"
sh "rm -f ./debug"
sh "rm -f haproxy/debug"
handleError(message, tag)
}

Expand Down

0 comments on commit c670a8b

Please sign in to comment.