mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2024-11-14 19:34:54 -05:00
Try and set the branch name
I figured out that the updater wasn't working because Jenkins was always setting the branch name to HEAD
This commit is contained in:
parent
67d8415fb3
commit
e3c53a1f8e
1 changed files with 3 additions and 0 deletions
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -1,5 +1,8 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
environment {
|
||||||
|
BRANCH_NAME = "${GIT_BRANCH.split("/")[1]}"
|
||||||
|
}
|
||||||
options {
|
options {
|
||||||
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5')
|
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue