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' }}