From e1500d01d9189275561d0bad60adfe58ee1b1ce5 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Wed, 13 Nov 2019 18:47:44 +0100 Subject: [PATCH] getting the branch name if is from upstream or fixing if come from PR (#4204) the previous env var does not exist anymore and that was failing when need to build server/webapp from upstream with same branch names --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e046b4a748d0..524764e7829d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -136,7 +136,7 @@ jobs: at: . - run: command: | - curl -f -o server.tar.gz https://releases.mattermost.com/mattermost-platform-pr/${CHANGE_BRANCH}/mattermost-enterprise-linux-amd64.tar.gz || curl -f -o server.tar.gz https://releases.mattermost.com/mattermost-platform/master/mattermost-enterprise-linux-amd64.tar.gz + curl -f -o server.tar.gz https://releases.mattermost.com/mattermost-platform-pr/$(echo "${CIRCLE_BRANCH}" | sed 's/pull\//PR-/g')/mattermost-enterprise-linux-amd64.tar.gz || curl -f -o server.tar.gz https://releases.mattermost.com/mattermost-platform/master/mattermost-enterprise-linux-amd64.tar.gz tar xf server.tar.gz rm -rf mattermost/client