mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
Update Jenkinsfile
This commit is contained in:
parent
5abcc47679
commit
e66336fe56
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -32,12 +32,15 @@ pipeline{
|
|||||||
set -e
|
set -e
|
||||||
export WORKSPACE=$(realpath "./jenkins/workspace/antd-web-apps")
|
export WORKSPACE=$(realpath "./jenkins/workspace/antd-web-apps")
|
||||||
cd $WORKSPACE
|
cd $WORKSPACE
|
||||||
make ar
|
[ -d build ] && rm -rf build
|
||||||
|
mkdir -p build/opt/www/htdocs
|
||||||
|
export BUILDDIR="$WORKSPACE/build/opt/www/htdocs"
|
||||||
|
make
|
||||||
'''
|
'''
|
||||||
script {
|
script {
|
||||||
// only useful for any master branch
|
// only useful for any master branch
|
||||||
//if (env.BRANCH_NAME =~ /^master/) {
|
//if (env.BRANCH_NAME =~ /^master/) {
|
||||||
archiveArtifacts artifacts: 'dist/', fingerprint: true
|
archiveArtifacts artifacts: 'build/', fingerprint: true
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user