diff --git a/Jenkinsfile b/Jenkinsfile index ff841a9..629e98a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,8 @@ // need to approve all static functions in Dashboard > Manage Jenkins > ScriptApproval def getBranchNames(projectName){ jenkins.model.Jenkins.instance.getItemByFullName(projectName).getAllJobs().each { job -> - env.tag = job.getName() - sh''' - echo "TAG: $tag" - mkdir -p -p build/frontend/$tag - ''' + String name = job.getName(); + copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'build/frontend/' + name); } }