Skip to content
Snippets Groups Projects
Commit 8401864b authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2492 cut long branch name

parent 6dd3805d
Branches
Tags
No related merge requests found
......@@ -403,6 +403,12 @@ String generateBezeichner(String stage) {
def branchName = makeUrlConform(env.BRANCH_NAME)
def stageName = makeUrlConform(stage)
def cutBranchNamePosition = 30 - (branchName.length() + stageName.length() + 8)
if(cutBranchNamePosition < 0) {
branchName = branchName[0..cutBranchNamePosition]
}
return "${branchName}${stageName}"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment