Update Jenkinsfile
Gitea/deathwatch-d10/pipeline/head This commit looks good
Details
Gitea/deathwatch-d10/pipeline/head This commit looks good
Details
This commit is contained in:
parent
5a41550e02
commit
a9dafe41bf
|
|
@ -7,8 +7,8 @@ pipeline {
|
|||
================== */
|
||||
|
||||
environment {
|
||||
MDBOOK_BUILD_DIR_P = "book_players"
|
||||
MDBOOK_BUILD_DIR_M = "book_master"
|
||||
BUILD_DIR_P = "book_players"
|
||||
BUILD_DIR_M = "book_master"
|
||||
DEPLOY_DIR_P = "/mnt/books/deathwatch-d10"
|
||||
DEPLOY_DIR_M = "/mnt/books/deathwatch-d10-master"
|
||||
PATH="${PATH}:/root/.cargo/bin:/usr/local/bin/"
|
||||
|
|
@ -41,13 +41,13 @@ pipeline {
|
|||
|
||||
stage('Build Book: Players') {
|
||||
steps {
|
||||
sh 'MDBOOK_PREPROCESSOR__HIDE=true mdbook build -d ${MDBOOK_BUILD_DIR_P}'
|
||||
sh 'MDBOOK_PREPROCESSOR__HIDE=true mdbook build -d ${BUILD_DIR_P}'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build Book: Master') {
|
||||
steps {
|
||||
sh 'MDBOOK_PREPROCESSOR__HIDE=false mdbook build -d ${MDBOOK_BUILD_DIR_M}'
|
||||
sh 'MDBOOK_PREPROCESSOR__HIDE=false mdbook build -d ${BUILD_DIR_M}'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -56,8 +56,8 @@ pipeline {
|
|||
sh 'echo "Deploying to ${DEPLOY_DIR_P} & ${DEPLOY_DIR_M}"'
|
||||
sh 'mkdir -p ${DEPLOY_DIR_P}'
|
||||
sh 'mkdir -p ${DEPLOY_DIR_M}'
|
||||
sh 'rsync -a --delete ${MDBOOK_BUILD_DIR_P}/ ${DEPLOY_DIR_P}'
|
||||
sh 'rsync -a --delete ${MDBOOK_BUILD_DIR_M}/ ${DEPLOY_DIR_M}'
|
||||
sh 'rsync -a --delete ${BUILD_DIR_P}/ ${DEPLOY_DIR_P}'
|
||||
sh 'rsync -a --delete ${BUILD_DIR_M}/ ${DEPLOY_DIR_M}'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue