From c9aff7544b4c26b751316f6e6b6547d5605bd6f2 Mon Sep 17 00:00:00 2001 From: dany Date: Thu, 29 Sep 2022 22:55:20 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e148567..638ceb8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,10 +3,11 @@ def copyArtifactsByBranches(projectName){ def jobs = jenkins.model.Jenkins.instance.getItemByFullName('gitea-sync/antos').getAllJobs(); Iterator iterator = jobs.iterator(); - while (iterator.hasNext()) { - def job = iterator.next(); - copyArtifacts(projectName: 'gitea-sync/antos/' + job.getName(), target: 'build/frontend/' + job.getName()); - } + while (iterator.hasNext()) { + def job = iterator.next(); + copyArtifacts(projectName: 'gitea-sync/antos/' + job.getName(), target: 'build/frontend/' + job.getName()); + } + return null; } pipeline{ agent { node{ label'workstation' }}