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:20:38 +02:00
parent cb1547669d
commit fc101abd9d

6
Jenkinsfile vendored
View File

@ -1,6 +1,6 @@
// need to approve all static functions in Dashboard > Manage Jenkins > ScriptApproval
def ArrayList<String> copyArtifactsByBranches(projectName){
def jobs = jenkins.model.Jenkins.instance.getItemByFullName('gitea-sync/antos').getAllJobs();
def ArrayList<String> getBranches(projectName){
def jobs = jenkins.model.Jenkins.instance.getItemByFullName(projectName).getAllJobs();
Iterator<?> iterator = jobs.iterator();
def arr = new ArrayList<String>();
@ -19,7 +19,7 @@ def generateStage(name) {
}
}
def parallelStagesMap = jenkins.model.Jenkins.instance.getItemByFullName('gitea-sync/antos').getAllJobs().collectEntries {
def parallelStagesMap = getBranches("gitea-sync/antos").collectEntries {
["${it}" : generateStage(it)]
}