Update 'Jenkinsfile'

This commit is contained in:
dany 2022-09-20 14:51:40 +02:00
parent c271ccaebd
commit e6db825621

79
Jenkinsfile vendored
View File

@ -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: '''