From afafb59a0bb684fed43aa0339a2e74fc9a7048ac Mon Sep 17 00:00:00 2001 From: dany Date: Thu, 29 Sep 2022 22:29:50 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 96cc79b..852e85c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,4 @@ // need to approve all static functions in Dashboard > Manage Jenkins > ScriptApproval -def getBranchNames(projectName){ - jenkins.model.Jenkins.instance.getItemByFullName(projectName).getAllJobs().each { job -> - String name = job.getName(); - echo name; - copyArtifacts(projectName: 'gitea-sync/antos/master', target: 'build/frontend'); - } -} pipeline{ agent { node{ label'workstation' }} @@ -27,13 +20,6 @@ pipeline{ } stages { - stage('Test') { - steps { - script { - getBranchNames("gitea-sync/antos"); - } - } - } stage('Prepare binaries') { steps { sh''' @@ -48,7 +34,15 @@ pipeline{ copyArtifacts(projectName: 'gitea-sync/antd-tunnel-publishers/master', target: 'build/backend'); copyArtifacts(projectName: 'luasocket', target: 'build/backend'); copyArtifacts(projectName: 'luasec', target: 'build/backend'); - copyArtifacts(projectName: 'gitea-sync/antos/*', target: 'build/frontend'); + script + { + jenkins.model.Jenkins.instance.getItemByFullName(projectName).getAllJobs().each { job -> + String name = job.getName(); + echo name; + copyArtifacts(projectName: 'gitea-sync/antos/' + name, 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