Skip to content

Commit

Permalink
Have to remove the push phases, we don't push anything
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Sep 8, 2016
1 parent bf7ec8b commit 880fec3
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ node('docker') {

stage 'Build'
try{
sh 'bin/build.sh &> debug'
sh 'bin/rebuild.sh &> debug'
} catch(error) {
def error_details = readFile('./debug');
def message = "BUILD ERROR: There was a problem building ${imagename}:${tag}. \n\n ${error_details}"
Expand All @@ -55,17 +55,6 @@ node('docker') {
sh "rm -f ./debug"
handleError(message)
}

stage 'Push'

docker.withRegistry('https://registry.hub.docker.com/', "dockerhub-$maintainer") {
def baseImg = docker.build("$maintainer/$imagename")
baseImg.push("$tag")
}

stage 'Notify'

slackSend color: 'good', message: "$maintainer/$imagename:$tag pushed to DockerHub"

}

Expand Down

0 comments on commit 880fec3

Please sign in to comment.