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
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good
This commit is contained in:
parent
85fa2a7c24
commit
7081d2c337
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
@ -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/) {
|
||||
|
Loading…
Reference in New Issue
Block a user