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();