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