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
29873eb59c
commit
b745111370
112
Jenkinsfile
vendored
112
Jenkinsfile
vendored
@ -1,50 +1,5 @@
|
|||||||
def remote = [:]
|
|
||||||
remote.name = 'workstation'
|
|
||||||
remote.host = 'workstation'
|
|
||||||
remote.user = 'dany'
|
|
||||||
remote.identityFile = '/var/jenkins_home/.ssh/id_rsa'
|
|
||||||
remote.allowAnyHosts = true
|
|
||||||
remote.agent = false
|
|
||||||
remote.logLevel = 'INFO'
|
|
||||||
def copylib()
|
|
||||||
{
|
|
||||||
sh '''
|
|
||||||
set -e
|
|
||||||
set -x
|
|
||||||
cd $WORKSPACE
|
|
||||||
mkdir lib-$arch
|
|
||||||
W=lib-$arch
|
|
||||||
cp -rf /lib/*-linux-*/libsqlite3*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libreadline*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libncurse*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libz*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libcrypt*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libdl*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libm*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libpthread*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libssl*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libc.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libgcc*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/ld*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libjpeg*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libvncclient*.so* $W
|
|
||||||
# vnc client support
|
|
||||||
cp -rf /lib/*-linux-*/libgcrypt*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libsasl2*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/liblzo2*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libgnutls*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libgpg-error*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libp11-kit*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libtasn1*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libnettle*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libhogweed*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libgmp*.so* $W
|
|
||||||
cp -rf /lib/*-linux-*/libffi*.so* $W
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
|
|
||||||
pipeline{
|
pipeline{
|
||||||
agent { node{ label'master' }}
|
agent { node{ label'workstation' }}
|
||||||
options {
|
options {
|
||||||
// Limit build history with buildDiscarder option:
|
// Limit build history with buildDiscarder option:
|
||||||
// daysToKeepStr: history is only kept up to this many days.
|
// daysToKeepStr: history is only kept up to this many days.
|
||||||
@ -63,55 +18,26 @@ pipeline{
|
|||||||
}
|
}
|
||||||
stages
|
stages
|
||||||
{
|
{
|
||||||
stage('Prepare AMD64') {
|
stage('Prepare binaries') {
|
||||||
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 {
|
steps {
|
||||||
script{
|
sh'''
|
||||||
env.arch = "amd64"
|
[ -d build ] && rm -rf build
|
||||||
}
|
mkdir -p build/frontend
|
||||||
copylib()
|
mkdir -p build/backend
|
||||||
}
|
'''
|
||||||
}
|
copyArtifacts(projectName: 'gitea-sync/ant-http/master', target: 'build/backend');
|
||||||
stage('Prepare ARM64') {
|
copyArtifacts(projectName: 'gitea-sync/antd-lua-plugin/master', target: 'build/backend');
|
||||||
agent {
|
copyArtifacts(projectName: 'gitea-sync/antd-tunnel-plugin/master', target: 'build/backend');
|
||||||
docker {
|
copyArtifacts(projectName: 'gitea-sync/antd-wvnc-plugin/master', target: 'build/backend');
|
||||||
image 'xsangle/ci-tools:latest-arm64'
|
copyArtifacts(projectName: 'gitea-sync/antd-tunnel-publishers/master', target: 'build/backend');
|
||||||
//args '-v /var/jenkins_home/workspace/antos-appimage:/var/jenkins_home/workspace/antos-appimage'
|
copyArtifacts(projectName: 'luasocket', target: 'build/backend');
|
||||||
reuseNode true
|
copyArtifacts(projectName: 'luasec', target: 'build/backend');
|
||||||
}
|
copyArtifacts(projectName: 'gitea-sync/gitea-sync/antd-web-apps/master/master', target: 'build/backend');
|
||||||
}
|
|
||||||
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') {
|
stage('Build AMD64') {
|
||||||
steps {
|
steps {
|
||||||
sshCommand remote: remote, command: '''
|
sh'''
|
||||||
export WORKSPACE=/var/jenkins_home/workspace/antos-appimage
|
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
[ -d build ] || mkdir build
|
[ -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
|
||||||
@ -123,8 +49,7 @@ pipeline{
|
|||||||
}
|
}
|
||||||
stage('Build arm64') {
|
stage('Build arm64') {
|
||||||
steps {
|
steps {
|
||||||
sshCommand remote: remote, command: '''
|
sh'''
|
||||||
export WORKSPACE=/var/jenkins_home/workspace/antos-appimage
|
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
[ -d build ] || mkdir build
|
[ -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
|
||||||
@ -136,8 +61,7 @@ pipeline{
|
|||||||
}
|
}
|
||||||
stage('Build arm') {
|
stage('Build arm') {
|
||||||
steps {
|
steps {
|
||||||
sshCommand remote: remote, command: '''
|
sh'''
|
||||||
export WORKSPACE=/var/jenkins_home/workspace/antos-appimage
|
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
[ -d build ] || mkdir build
|
[ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user