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
cb1547669d
commit
fc101abd9d
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -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)]
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user