1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-20 02:18:20 +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') { stage('Build') {
steps { steps {
sshCommand remote: remote, command: ''' sh'''
set -e export -p | tee build.source
export WORKSPACE=$(realpath "./jenkins/workspace/antd-web-apps") cat <<"EOF" >>build.source
cd $WORKSPACE cd $WORKSPACE
[ -d build ] && rm -rf build [ -d build ] && rm -rf build
mkdir -p build/opt/www/htdocs mkdir -p build/opt/www/htdocs
export BUILDDIR="$WORKSPACE/build/opt/www/htdocs" export BUILDDIR="$WORKSPACE/build/opt/www/htdocs"
make make
''' EOF
'''
sshScript remote: remote, script: "build.source"
script { script {
// only useful for any master branch // only useful for any master branch
//if (env.BRANCH_NAME =~ /^master/) { //if (env.BRANCH_NAME =~ /^master/) {