From e66336fe563e152bbd737133936a346c42c73bec Mon Sep 17 00:00:00 2001 From: Dany LE Date: Tue, 2 Aug 2022 12:04:31 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 496a287..6dfe4b3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,12 +32,15 @@ pipeline{ set -e export WORKSPACE=$(realpath "./jenkins/workspace/antd-web-apps") cd $WORKSPACE - make ar + [ -d build ] && rm -rf build + mkdir -p build/opt/www/htdocs + export BUILDDIR="$WORKSPACE/build/opt/www/htdocs" + make ''' script { // only useful for any master branch //if (env.BRANCH_NAME =~ /^master/) { - archiveArtifacts artifacts: 'dist/', fingerprint: true + archiveArtifacts artifacts: 'build/', fingerprint: true //} } }