Update 'Jenkinsfile'
Some checks failed
gitea-sync/antos-appimage/pipeline/head There was a failure building this commit

This commit is contained in:
dany 2022-09-29 23:25:49 +02:00
parent fc101abd9d
commit 39afc2c63b

31
Jenkinsfile vendored
View File

@ -13,8 +13,9 @@ def ArrayList<String> getBranches(projectName){
def generateStage(name) { def generateStage(name) {
return { return {
stage("stage: ANTOS ${name}") { stage("ANTOS ${name}") {
copyArtifacts(projectName: 'gitea-sync/antos/' + name, target: 'build/frontend/' + 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 { steps {
sh''' sh'''
[ -d build ] && rm -rf build [ -d build ] && rm -rf build
mkdir -p build/frontend mkdir build
mkdir -p build/backend [ -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/ant-http/master', target: 'antos/backend');
copyArtifacts(projectName: 'gitea-sync/antd-lua-plugin/master', target: 'build/backend'); copyArtifacts(projectName: 'gitea-sync/antd-lua-plugin/master', target: 'antos/backend');
copyArtifacts(projectName: 'gitea-sync/antd-tunnel-plugin/master', target: 'build/backend'); copyArtifacts(projectName: 'gitea-sync/antd-tunnel-plugin/master', target: 'antos/backend');
copyArtifacts(projectName: 'gitea-sync/antd-wvnc-plugin/master', target: 'build/backend'); copyArtifacts(projectName: 'gitea-sync/antd-wvnc-plugin/master', target: 'antos/backend');
copyArtifacts(projectName: 'gitea-sync/antd-tunnel-publishers/master', target: 'build/backend'); copyArtifacts(projectName: 'gitea-sync/antd-tunnel-publishers/master', target: 'antos/backend');
copyArtifacts(projectName: 'luasocket', target: 'build/backend'); copyArtifacts(projectName: 'luasocket', target: 'antos/backend');
copyArtifacts(projectName: 'luasec', target: 'build/backend'); copyArtifacts(projectName: 'luasec', target: 'antos/backend');
script script
{ {
parallel parallelStagesMap; parallel parallelStagesMap;
} }
//copyArtifacts(projectName: 'gitea-sync/antos/*', target: 'build/frontend');
//copyArtifacts(projectName: 'gitea-sync/antd-web-apps/master', target: 'build/backend');
sh''' sh'''
tree build tree antos
exit 1 exit 1
''' '''
} }
@ -74,7 +75,6 @@ pipeline{
steps { steps {
sh''' sh'''
cd $WORKSPACE cd $WORKSPACE
[ -d build ] || mkdir build
for file in /var/jenkins_home/workspace/nightly-antosaio/build/frontend/*; do for file in /var/jenkins_home/workspace/nightly-antosaio/build/frontend/*; do
echo "Building for AMD64 version $tag" echo "Building for AMD64 version $tag"
./mkimg.sh amd64 $(basename $file) ./mkimg.sh amd64 $(basename $file)
@ -86,7 +86,6 @@ pipeline{
steps { steps {
sh''' sh'''
cd $WORKSPACE cd $WORKSPACE
[ -d build ] || mkdir build
for file in /var/jenkins_home/workspace/nightly-antosaio/build/frontend/*; do for file in /var/jenkins_home/workspace/nightly-antosaio/build/frontend/*; do
echo "Building for arm64 version $tag" echo "Building for arm64 version $tag"
./mkimg.sh arm64 $(basename $file) ./mkimg.sh arm64 $(basename $file)