From b864827f2c2260e4eae74ac52016686b803f90b7 Mon Sep 17 00:00:00 2001 From: Dany LE Date: Tue, 2 Aug 2022 17:18:15 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0ab898d..825674b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,8 +2,20 @@ def build_antd() { docker.image("xsangle/ci-tools:latest-" + env.arch).withRun("bash") { sh ''' - printenv - uname -a + set -e + cd $WORKSPACE + [ -d build ] && rm -rf build + mkdir -p build/$arch/etc/systemd/system/ + mkdir -p build/$arch/opt/www + [ -f Makefile ] && make clean + libtoolize + aclocal + autoconf + automake --add-missing + ./configure --prefix=/usr + make + DESTDIR=$WORKSPACE/build/$arch make install + cp $WORKSPACE/build/usr/etc/antd-config.ini build/$arch/opt/www/config.ini.example ''' } } @@ -37,15 +49,6 @@ pipeline{ } } stage('Build ARM64') { - agent { - docker { - image ' xsangle/ci-tools:latest-arm64' - // Run the container on the node specified at the - // top-level of the Pipeline, in the same workspace, - // rather than on a new node entirely: - reuseNode true - } - } steps { script{ env.arch = "arm64" @@ -54,15 +57,6 @@ pipeline{ } } stage('Build ARM') { - agent { - docker { - image ' xsangle/ci-tools:latest-arm' - // Run the container on the node specified at the - // top-level of the Pipeline, in the same workspace, - // rather than on a new node entirely: - reuseNode true - } - } steps { script{ env.arch = "arm"