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
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') {
|
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/) {
|
||||||
|
Loading…
Reference in New Issue
Block a user