I hate Jenkins sometimes

This commit is contained in:
2022-04-22 03:04:10 -05:00
parent d495d26d78
commit da8e9e0497
2 changed files with 15 additions and 4 deletions

2
Jenkinsfile vendored
View File

@ -1,7 +1,7 @@
pipeline {
agent any
environment {
BRANCH_NAME = "${GIT_BRANCH.split('/').size() > 1 ? GIT_BRANCH.split('/')[1..-1].join('/') : GIT_BRANCH}"
GITHUB_BRANCH = "${GIT_BRANCH.split('/').size() > 1 ? GIT_BRANCH.split('/')[1..-1].join('/') : GIT_BRANCH}"
}
options {
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5')