From 61f7e8d3a92803209f77258840a5c4d2c08417a9 Mon Sep 17 00:00:00 2001 From: Christopher Hubing Date: Tue, 13 Feb 2018 09:58:02 -0500 Subject: [PATCH] Update Jenkinsfile pushed to grouper repo and added better post stage output --- Jenkinsfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"