Update 'Jenkinsfile'
Some checks failed
gitea-sync/antos-appimage/pipeline/head There was a failure building this commit
Some checks failed
gitea-sync/antos-appimage/pipeline/head There was a failure building this commit
This commit is contained in:
parent
8d9cf85cd7
commit
838d8e91db
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -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<String> getBranches(projectName){
|
||||
def jobs = jenkins.model.Jenkins.instance.getItemByFullName(projectName).getAllJobs();
|
||||
Iterator<?> iterator = jobs.iterator();
|
||||
|
Loading…
Reference in New Issue
Block a user