mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2026-06-04 08:56:54 +00:00
the fact that i have to do this to get the branch name is ridiculous
This commit is contained in:
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
environment {
|
environment {
|
||||||
BRANCH_NAME = "${GIT_BRANCH.split("/")[1]}"
|
BRANCH_NAME = "${GIT_BRANCH.split('/').size() > 1 ? GIT_BRANCH.split('/')[1..-1].join('/') : GIT_BRANCH}"
|
||||||
}
|
}
|
||||||
options {
|
options {
|
||||||
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5')
|
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5')
|
||||||
|
|||||||
Reference in New Issue
Block a user