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
9f9bbee602
commit
fee7a3fa97
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -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
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user