From 39afc2c63b04d75bf76ccbb0986a2f0cc1f76a4e Mon Sep 17 00:00:00 2001 From: dany Date: Thu, 29 Sep 2022 23:25:49 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index dcbdc39..647324c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,8 +13,9 @@ def ArrayList getBranches(projectName){ def generateStage(name) { return { - stage("stage: ANTOS ${name}") { - copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'build/frontend/' + name); + stage("ANTOS ${name}") { + copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'antos/frontend/' + name); + copyArtifacts(projectName: 'gitea-sync/antd-web-apps/master', target: 'antos/frontend' + name); } } } @@ -48,24 +49,24 @@ pipeline{ steps { sh''' [ -d build ] && rm -rf build - mkdir -p build/frontend - mkdir -p build/backend + mkdir build + [ -d antos ] && rm -rf antos + mkdir -p antos/frontend + mkdir -p antos/backend ''' - copyArtifacts(projectName: 'gitea-sync/ant-http/master', target: 'build/backend'); - copyArtifacts(projectName: 'gitea-sync/antd-lua-plugin/master', target: 'build/backend'); - copyArtifacts(projectName: 'gitea-sync/antd-tunnel-plugin/master', target: 'build/backend'); - copyArtifacts(projectName: 'gitea-sync/antd-wvnc-plugin/master', target: 'build/backend'); - 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/ant-http/master', target: 'antos/backend'); + copyArtifacts(projectName: 'gitea-sync/antd-lua-plugin/master', target: 'antos/backend'); + copyArtifacts(projectName: 'gitea-sync/antd-tunnel-plugin/master', target: 'antos/backend'); + copyArtifacts(projectName: 'gitea-sync/antd-wvnc-plugin/master', target: 'antos/backend'); + copyArtifacts(projectName: 'gitea-sync/antd-tunnel-publishers/master', target: 'antos/backend'); + copyArtifacts(projectName: 'luasocket', target: 'antos/backend'); + copyArtifacts(projectName: 'luasec', target: 'antos/backend'); script { parallel parallelStagesMap; } - //copyArtifacts(projectName: 'gitea-sync/antos/*', target: 'build/frontend'); - //copyArtifacts(projectName: 'gitea-sync/antd-web-apps/master', target: 'build/backend'); sh''' - tree build + tree antos exit 1 ''' } @@ -74,7 +75,6 @@ pipeline{ steps { sh''' cd $WORKSPACE - [ -d build ] || mkdir build for file in /var/jenkins_home/workspace/nightly-antosaio/build/frontend/*; do echo "Building for AMD64 version $tag" ./mkimg.sh amd64 $(basename $file) @@ -86,7 +86,6 @@ pipeline{ steps { sh''' cd $WORKSPACE - [ -d build ] || mkdir build for file in /var/jenkins_home/workspace/nightly-antosaio/build/frontend/*; do echo "Building for arm64 version $tag" ./mkimg.sh arm64 $(basename $file)