Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
pushed to grouper repo and added better post stage output
  • Loading branch information
chubing authored Feb 13, 2018
1 parent 19d0123 commit 61f7e8d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,24 @@ pipeline {
def baseImg = docker.build("$maintainer/$imagename")
baseImg.push("$tag")
}
docker.withRegistry('https://registry.hub.docker.com/', "dockerhub-$maintainer") {
def baseImg = docker.build("$maintainer/grouper")
baseImg.push("$tag")
}
}
}
}
stage('Notify') {
steps{
echo "$maintainer"
slackSend color: 'good', message: "$maintainer/$imagename:$tag pushed to DockerHub"
slackSend color: 'good', message: "$maintainer/grouper:$tag pushed to DockerHub"
}
}
}
post {
always {
echo 'I will always say Hello again!'
echo 'Done build and push.'
}
failure {
// slackSend color: 'good', message: "Build failed"
Expand Down

0 comments on commit 61f7e8d

Please sign in to comment.