Skip to content

Commit 4fcdb50

Browse files
committed
Use travis branch instead of current branch
1 parent 23eba25 commit 4fcdb50

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ ifneq "$(RELEASE)" "$(EMPTY)"
122122
MQ_MANIFEST_TAG=$(MQ_VERSION)-$(RELEASE)-$(RELEASE_CANDIDATE)
123123
endif
124124

125-
CURRENT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
126-
127125
ifeq "$(TIMESTAMPFLAT)" "$(EMPTY)"
128126
TIMESTAMPFLAT=$(shell date "+%Y%m%d%H%M%S")
129127
endif
@@ -132,7 +130,7 @@ ifeq "$(GIT_COMMIT)" "$(EMPTY)"
132130
GIT_COMMIT=$(shell git rev-parse --short HEAD)
133131
endif
134132

135-
ifeq ($(shell [ ! -z $(TRAVIS) ] && [ "$(TRAVIS_PULL_REQUEST)" != "true" ] && [ "$(CURRENT_BRANCH)" == "private-master" ] && echo true), true)
133+
ifeq ($(shell [ ! -z $(TRAVIS) ] && [ "$(TRAVIS_PULL_REQUEST)" != "true" ] && [ "$(TRAVIS_BRANCH)" = "private-master" ] && echo true), true)
136134
RELEASE_TAG=$(shell [ -z "$(RELEASE)" ] || echo "-$(RELEASE)-$(RELEASE_CANDIDATE)")
137135
MQ_TAG=$(MQ_VERSION)$(RELEASE_TAG)-$(ARCH).$(TIMESTAMPFLAT).$(GIT_COMMIT)
138136
MQ_MANIFEST_TAG=$(MQ_VERSION)$(RELEASE_TAG).$(TIMESTAMPFLAT).$(GIT_COMMIT)

0 commit comments

Comments
 (0)