From e3c53a1f8ea84fd7bd59463b1ed5fc1d27215714 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Fri, 22 Apr 2022 02:42:28 -0500 Subject: [PATCH] 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 --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index b025bd6..963a74c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,8 @@ pipeline { agent any + environment { + BRANCH_NAME = "${GIT_BRANCH.split("/")[1]}" + } options { buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5') }