1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-19 18:08:21 +01:00

dont use fixed ws path in build script
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good

This commit is contained in:
Dany LE 2022-09-26 09:36:08 +02:00 committed by GitHub
parent 85fa2a7c24
commit 7081d2c337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
Jenkinsfile vendored
View File

@ -28,15 +28,17 @@ pipeline{
{
stage('Build') {
steps {
sshCommand remote: remote, command: '''
set -e
export WORKSPACE=$(realpath "./jenkins/workspace/antd-web-apps")
cd $WORKSPACE
[ -d build ] && rm -rf build
mkdir -p build/opt/www/htdocs
export BUILDDIR="$WORKSPACE/build/opt/www/htdocs"
make
'''
sh'''
export -p | tee build.source
cat <<"EOF" >>build.source
cd $WORKSPACE
[ -d build ] && rm -rf build
mkdir -p build/opt/www/htdocs
export BUILDDIR="$WORKSPACE/build/opt/www/htdocs"
make
EOF
'''
sshScript remote: remote, script: "build.source"
script {
// only useful for any master branch
//if (env.BRANCH_NAME =~ /^master/) {