Update 'Jenkinsfile'
Some checks failed
gitea-sync/antos-appimage/pipeline/head There was a failure building this commit

This commit is contained in:
dany 2022-09-29 23:57:06 +02:00
parent 8d9cf85cd7
commit 838d8e91db

7
Jenkinsfile vendored
View File

@ -1,4 +1,11 @@
// need to approve all static functions in Dashboard > Manage Jenkins > ScriptApproval // 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<String> getBranches(projectName){ def ArrayList<String> getBranches(projectName){
def jobs = jenkins.model.Jenkins.instance.getItemByFullName(projectName).getAllJobs(); def jobs = jenkins.model.Jenkins.instance.getItemByFullName(projectName).getAllJobs();
Iterator<?> iterator = jobs.iterator(); Iterator<?> iterator = jobs.iterator();