From 3782b3e21b400342af01163d7c63dddf94c43832 Mon Sep 17 00:00:00 2001 From: cpanato Date: Wed, 11 Nov 2020 18:25:53 +0100 Subject: [PATCH] fix docker push --- build/Jenkinsfile.branch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/Jenkinsfile.branch b/build/Jenkinsfile.branch index 286e9a71ad..e761cdd346 100644 --- a/build/Jenkinsfile.branch +++ b/build/Jenkinsfile.branch @@ -131,13 +131,13 @@ pipeline { export TAG='${env.BRANCH_NAME}' export GIT_HASH=\$(git rev-parse --short HEAD) docker build --no-cache --build-arg MM_PACKAGE=https://releases.mattermost.com/mattermost-platform/${env.BRANCH_NAME}/mattermost-enterprise-linux-amd64.tar.gz -t mattermost/mattermost-enterprise-edition:\${TAG} -t mattermost/mattermost-enterprise-edition:\${GIT_HASH} build - docker push mattermost/mattermost-enterprise-edition:\${TAG} mattermost/mattermost-enterprise-edition:\${GIT_HASH} + docker push mattermost/mattermost-enterprise-edition """ sh """ export TAG='${env.BRANCH_NAME}' export GIT_HASH=\$(git rev-parse --short HEAD) docker build --no-cache --build-arg MM_PACKAGE=https://releases.mattermost.com/mattermost-platform/${env.BRANCH_NAME}/mattermost-team-linux-amd64.tar.gz -t mattermost/mattermost-team-edition:\${TAG} -t mattermost/mattermost-team-edition:\${GIT_HASH} build - docker push mattermost/mattermost-team-edition:\${TAG} mattermost/mattermost-team-edition:\${GIT_HASH} + docker push mattermost/mattermost-team-edition docker logout """ }