mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #34127 from overleaf/gs-j-cd-hooks
Add deploy pipeline trigger hooks to Jenkinsfiles GitOrigin-RevId: 80bb89615ae16b733009dca21a5fc41b5c30e993
This commit is contained in:
@@ -6,6 +6,11 @@ ifeq ($(BRANCH_NAME),)
|
||||
export BRANCH_NAME := $(shell git rev-parse --abbrev-ref HEAD)
|
||||
endif
|
||||
BRANCH_NAME_TAG_SAFE := $(shell echo "$(BRANCH_NAME)" | sed 's/\//\-\-/g' | cut -c1-96)
|
||||
|
||||
.PHONY: print-branch-tag-safe
|
||||
print-branch-tag-safe:
|
||||
@echo $(BRANCH_NAME_TAG_SAFE)
|
||||
|
||||
ifeq ($(COMMIT_SHA),)
|
||||
export COMMIT_SHA := $(shell git rev-parse HEAD)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user