Update CI
Build Successful The build was successful
Ravenous/Ravenous-LaTeX/pipeline/head This commit looks good
Details
Build Successful The build was successful
Ravenous/Ravenous-LaTeX/pipeline/head This commit looks good
Details
This commit is contained in:
parent
319d53ac63
commit
4576fdbcf9
|
|
@ -38,7 +38,7 @@ pipeline {
|
|||
stage('Build Book') {
|
||||
steps {
|
||||
script {
|
||||
if (env.BRANCH_NAME == 'origin/review' || env.BRANCH_NAME == 'review' || env.BRANCH_NAME == 'origin/dev-ci' || env.BRANCH_NAME == 'dev-ci') {
|
||||
if (env.BRANCH_NAME == 'origin/review' || env.BRANCH_NAME == 'review' || env.BRANCH_NAME == 'origin/dev-ci' || env.BRANCH_NAME == 'dev-ci' || env.BRANCH_NAME == 'dev-eng' || env.BRANCH_NAME == 'origin/dev-eng' ) {
|
||||
sh 'echo "Deploying to ${DEPLOY_DIR}_review"'
|
||||
sh 'ravenous-tools make -t glossaries Ravenous.tex'
|
||||
sh 'ravenous-tools make Ravenous.tex'
|
||||
|
|
@ -69,6 +69,10 @@ pipeline {
|
|||
sh 'echo "Deploying to ${DEPLOY_DIR}"'
|
||||
sh 'mkdir -p ${DEPLOY_DIR}'
|
||||
sh 'rsync -a --delete "${ORIGIN_FOLDER}" "${DEPLOY_DIR}/"'
|
||||
} else if (env.BRANCH_NAME == 'origin/dev-eng' || env.BRANCH_NAME == 'dev-eng') {
|
||||
sh 'echo "Deploying to ${DEPLOY_DIR}_eng"'
|
||||
sh 'mkdir -p ${DEPLOY_DIR}_eng'
|
||||
sh 'rsync -a --delete "${ORIGIN_FOLDER}" "${DEPLOY_DIR}_eng/"'
|
||||
} else {
|
||||
echo "Unknown branch: ${env.BRANCH_NAME} — skipping deploy steps."
|
||||
}
|
||||
|
|
|
|||
Reference in New Issue