Update 'Jenkinsfile'
All checks were successful
gitea-sync/antos-appimage/pipeline/head This commit looks good
All checks were successful
gitea-sync/antos-appimage/pipeline/head This commit looks good
This commit is contained in:
parent
3f8b1f8580
commit
b512b3a70d
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -1,5 +1,12 @@
|
||||
// need to approve all static functions in Dashboard > Manage Jenkins > ScriptApproval
|
||||
|
||||
@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/');
|
||||
echo name;
|
||||
}
|
||||
}
|
||||
pipeline{
|
||||
agent { node{ label'workstation' }}
|
||||
options {
|
||||
@ -36,11 +43,7 @@ pipeline{
|
||||
copyArtifacts(projectName: 'luasec', target: 'build/backend');
|
||||
script
|
||||
{
|
||||
jenkins.model.Jenkins.instance.getItemByFullName('gitea-sync/antos').getAllJobs().each { job ->
|
||||
String name = job.getName();
|
||||
copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'build/frontend/');
|
||||
echo name;
|
||||
}
|
||||
copyArtifactsByBranches("gitea-sync/antos");
|
||||
}
|
||||
//copyArtifacts(projectName: 'gitea-sync/antos/*', target: 'build/frontend');
|
||||
//copyArtifacts(projectName: 'gitea-sync/antd-web-apps/master', target: 'build/backend');
|
||||
|
Loading…
Reference in New Issue
Block a user