mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-26 01:18:21 +01:00
Separate build based on current branch name
This commit is contained in:
parent
4cd271cc51
commit
53867c9d03
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -29,6 +29,9 @@ pipeline{
|
||||
{
|
||||
stage('Prebuild build') {
|
||||
steps {
|
||||
sh'''
|
||||
export -p | tee env.source
|
||||
'''
|
||||
sshCommand remote: remote, command: '''
|
||||
set -e
|
||||
export WORKSPACE=$(realpath "./jenkins/workspace/antos")
|
||||
@ -46,8 +49,10 @@ pipeline{
|
||||
set -e
|
||||
export WORKSPACE=$(realpath "./jenkins/workspace/antos")
|
||||
cd $WORKSPACE
|
||||
[ -d build ] && rm -rf build
|
||||
export BUILDDIR="$WORKSPACE/build/opt/www/htdocs/os"
|
||||
source env.source
|
||||
buildir="build/$GIT_BRANCH"
|
||||
[ -d "$buildir" ] && rm -rf "$buildir"
|
||||
export BUILDDIR="$WORKSPACE/$buildir/opt/www/htdocs/os"
|
||||
make release
|
||||
'''
|
||||
script {
|
||||
|
Loading…
Reference in New Issue
Block a user