use BRANCH from TRAVIS_BRANCH
This commit is contained in:
parent
1910637d91
commit
28249f13b5
@ -38,9 +38,13 @@ ifeq (true,$(shell git rev-parse --is-inside-work-tree))
|
||||
GIT_REVISION = $(shell git rev-list --count 1af8c74f53110e349d8f0d19b14599281913f71f..)
|
||||
ifneq (,$(CI_COMMIT_REF_NAME))
|
||||
GIT_BRANCH = $(CI_COMMIT_REF_NAME)
|
||||
else
|
||||
ifneq (,$(TRAVIS_BRANCH))
|
||||
GIT_BRANCH = $(TRAVIS_BRANCH)
|
||||
else
|
||||
GIT_BRANCH = $(shell git rev-parse --abbrev-ref HEAD)
|
||||
endif
|
||||
endif
|
||||
ifneq (master,$(GIT_BRANCH))
|
||||
GIT_REVISION := $(GIT_REVISION)-$(GIT_BRANCH)
|
||||
endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user