From b69d98d20510edf8fd8f4cd240dc6209fa07bd9c Mon Sep 17 00:00:00 2001 From: Dany LE Date: Mon, 3 Oct 2022 09:50:35 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index efa658a..2996c0f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ def build_plugin() aclocal autoconf automake --add-missing - search_path=$(realpath $WORKSPACE/../ant-http/build/$arch/usr) + search_path=$(realpath antd/build/$arch/usr) CFLAGS="-I$search_path/include" LDFLAGS="-L$search_path/lib" ./configure --prefix=/opt/www CFLAGS="-I$search_path/include" LDFLAGS="-L$search_path/lib" make DESTDIR=$WORKSPACE/build/$arch make install @@ -36,11 +36,16 @@ pipeline{ } stages { + stage('Prepare dependencies') + { + steps { + copyArtifacts(projectName: 'gitea-sync/ant-http/master', target: 'antd'); + } + } stage('Build AMD64') { agent { docker { image 'xsangle/ci-tools:bionic-amd64' - args '-v /var/jenkins_home/workspace/ant-http:/var/jenkins_home/workspace/ant-http' // 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: @@ -59,7 +64,6 @@ pipeline{ agent { docker { image 'xsangle/ci-tools:bionic-arm64' - args '-v /var/jenkins_home/workspace/ant-http:/var/jenkins_home/workspace/ant-http' // 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: @@ -78,7 +82,6 @@ pipeline{ agent { docker { image 'xsangle/ci-tools:bionic-arm' - args '-v /var/jenkins_home/workspace/ant-http:/var/jenkins_home/workspace/ant-http' // 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: