From fee7a3fa977886980895905c768487baf3d8bfd0 Mon Sep 17 00:00:00 2001 From: dany Date: Thu, 29 Sep 2022 22:45:16 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d4d2d5e..b8ae876 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,9 +2,7 @@ @NonCPS def copyArtifactsByBranches(projectName){ jenkins.model.Jenkins.instance.getItemByFullName('gitea-sync/antos').getAllJobs().each { job -> - String name = job.getName(); - copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'build/frontend/' + name); - echo name; + copyArtifacts(projectName: 'gitea-sync/antos/' + job.getName(), target: 'build/frontend/' + job.getName()); } } pipeline{ @@ -45,10 +43,11 @@ pipeline{ { copyArtifactsByBranches("gitea-sync/antos"); } - copyArtifacts(projectName: 'gitea-sync/antos/*', target: 'build/frontend'); + //copyArtifacts(projectName: 'gitea-sync/antos/*', target: 'build/frontend'); //copyArtifacts(projectName: 'gitea-sync/antd-web-apps/master', target: 'build/backend'); sh''' tree build + exit 1 ''' } }