From 838d8e91dbc5521061fb2bddf3cce027fc886855 Mon Sep 17 00:00:00 2001 From: dany Date: Thu, 29 Sep 2022 23:57:06 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 6cc1d5e..f8092e2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,11 @@ // need to approve all static functions in Dashboard > Manage Jenkins > ScriptApproval +// method hudson.model.Item getAllJobs +// method hudson.model.Item getName +// method hudson.model.ItemGroup getItem java.lang.String +// method hudson.model.ItemGroup getItems +// method jenkins.model.Jenkins getItemByFullName java.lang.String +// new java.util.ArrayList +staticMethod jenkins.model.Jenkins getInstance def ArrayList getBranches(projectName){ def jobs = jenkins.model.Jenkins.instance.getItemByFullName(projectName).getAllJobs(); Iterator iterator = jobs.iterator();