Update 'Jenkinsfile'
Some checks failed
gitea-sync/antos-appimage/pipeline/head There was a failure building this commit
Some checks failed
gitea-sync/antos-appimage/pipeline/head There was a failure building this commit
This commit is contained in:
parent
b4dc960dd7
commit
a47bbf868e
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -1,8 +1,11 @@
|
||||
// need to approve all static functions in Dashboard > Manage Jenkins > ScriptApproval
|
||||
def copyArtifactsByBranches(projectName){
|
||||
jenkins.model.Jenkins.instance.getItemByFullName('gitea-sync/antos').getAllJobs().each { job ->
|
||||
copyArtifacts(projectName: 'gitea-sync/antos/' + job.getName(), target: 'build/frontend/' + job.getName());
|
||||
}
|
||||
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());
|
||||
}
|
||||
}
|
||||
pipeline{
|
||||
agent { node{ label'workstation' }}
|
||||
|
Loading…
Reference in New Issue
Block a user