fix jenkinsfile for branch build

This commit is contained in:
cpanato
2019-07-17 18:30:28 +02:00
parent dac7014b48
commit 262ccca15f

View File

@@ -123,7 +123,7 @@ pipeline {
sh """
export TAG='${env.BRANCH_NAME}.${env.BUILD_NUMBER}.${SERVER_GIT_COMMIT}'
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} build
docker push mattermost/mattermost-enterprise-edition:${GIT_COMMIT_SHORT}
docker push mattermost/mattermost-enterprise-edition:\${TAG}
docker logout
"""
}