From e6db8256217831f94e65a8905d2bf26b520a6c88 Mon Sep 17 00:00:00 2001 From: dany Date: Tue, 20 Sep 2022 14:51:40 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 79 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 73 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 038f443..2eba3ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,12 +12,34 @@ def build_appimage() set -e set -x cd $WORKSPACE - [ -d build ] && rm -rf build - mkdir build - for file in /var/jenkins_home/workspace/nightly-antosaio/build/frontend/*; do - echo "Building for $arch version $tag" - ./mkimg.sh $arch $(basename $file) - done + mkdir lib-$arch + W=lib-$arch + cp -rf /lib/*-linux-*/libsqlite3* $W + cp -rf /lib/*-linux-*/libreadline* $W + cp -rf /lib/*-linux-*/libncurse* $W + cp -rf /lib/*-linux-*/libz* $W + cp -rf /lib/*-linux-*/libcrypt* $W + cp -rf /lib/*-linux-*/libdl* $W + cp -rf /lib/*-linux-*/libm* $W + cp -rf /lib/*-linux-*/libpthread* $W + cp -rf /lib/*-linux-*/libssl* $W + cp -rf /lib/*-linux-*/libc* $W + cp -rf /lib/*-linux-*/libgcc* $W + cp -rf /lib/*-linux-*/ld* $W + cp -rf /lib/*-linux-*/libjpeg* $W + cp -rf /lib/*-linux-*/libvncclient* $W + # vnc client support + cp -rf /lib/*-linux-*/libgcrypt* $W + cp -rf /lib/*-linux-*/libsasl2* $W + cp -rf /lib/*-linux-*/liblzo2* $W + cp -rf /lib/*-linux-*/libgnutls* $W + cp -rf /lib/*-linux-*/libgpg-error* $W + cp -rf /lib/*-linux-*/libp11-kit* $W + cp -rf /lib/*-linux-*/libtasn1* $W + cp -rf /lib/*-linux-*/libnettle* $W + cp -rf /lib/*-linux-*/libhogweed* $W + cp -rf /lib/*-linux-*/libgmp* $W + cp -rf /lib/*-linux-*/libffi* $W ''' } @@ -41,6 +63,51 @@ pipeline{ } stages { + stage('Prepare AMD64') { + agent { + docker { + image 'xsangle/ci-tools:latest-amd64' + args '-v /var/jenkins_home/workspace/antos-appimage:/var/jenkins_home/workspace/antos-appimage' + reuseNode true + } + } + steps { + script{ + env.arch = "amd64" + } + copylib() + } + } + stage('Prepare ARM64') { + agent { + docker { + image 'xsangle/ci-tools:latest-arm64' + args '-v /var/jenkins_home/workspace/antos-appimage:/var/jenkins_home/workspace/antos-appimage' + reuseNode true + } + } + steps { + script{ + env.arch = "arm64" + } + copylib() + } + } + stage('Prepare ARM') { + agent { + docker { + image 'xsangle/ci-tools:latest-arm' + args '-v /var/jenkins_home/workspace/antos-appimage:/var/jenkins_home/workspace/antos-appimage' + reuseNode true + } + } + steps { + script{ + env.arch = "arm" + } + copylib() + } + } stage('Build AMD64') { steps { sshCommand remote: remote, command: '''