Module: check_mk
Branch: master
Commit: 503accdc73f3a13191fe92a81d187055d9d2b5b2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=503accdc73f3a1…
Author: Alex Zurhake <az(a)mathias-kettner.de>
Date: Fri Apr 12 07:49:09 2019 +0200
Use scm.branches[0].name to get the branch name
The variable BRANCH_NAME does only exist in Multibranch Pipleines, in normal Pipelines
this variable needs to be used and the usage needs to be authorized (gui).
Change-Id: I9e2b5daade9acf9dfcf1832465d9ddd502f55447
---
buildscripts/scripts/nightly-build.jenkins | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buildscripts/scripts/nightly-build.jenkins
b/buildscripts/scripts/nightly-build.jenkins
index 6e31e87..d24562d 100644
--- a/buildscripts/scripts/nightly-build.jenkins
+++ b/buildscripts/scripts/nightly-build.jenkins
@@ -24,7 +24,7 @@ def DOCKER_BUILDS = [:]
def dateFormat = new SimpleDateFormat("yyyy.MM.dd")
def date = new Date()
def CMK_VERS = dateFormat.format(date)
-def DAILY_DATA = '/var/jenkins_home/daily-data/' +
BRANCH_NAME.replaceAll("/","-") + '/' + CMK_VERS
+def DAILY_DATA = '/var/jenkins_home/daily-data/' +
env.BRANCH_NAME.replaceAll("/","-") + '/' + CMK_VERS
def PACKAGE_DIR = '/bauwelt/download'
def GPG_KEY_DIR = '/bauwelt/etc/.gnupg'