From 89ee949d85cc8dbf05b1b7cdff32e7b78d8c92cd Mon Sep 17 00:00:00 2001 From: dany Date: Thu, 29 Sep 2022 22:08:26 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2a7acae..ff841a9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,11 @@ +// need to approve all static functions in Dashboard > Manage Jenkins > ScriptApproval def getBranchNames(projectName){ - //hudson.model.Hudson.instance jenkins.model.Jenkins.instance.getItemByFullName(projectName).getAllJobs().each { job -> - echo job.getName() + env.tag = job.getName() + sh''' + echo "TAG: $tag" + mkdir -p -p build/frontend/$tag + ''' } }