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
1827d85b5b
commit
afafb59a0b
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user