diff --git a/Jenkinsfile b/Jenkinsfile index e9095c5..3291b42 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,6 +36,10 @@ 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") + } } } } @@ -43,12 +47,13 @@ pipeline { 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"