Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Fix website build on master branch (#819)
Browse files Browse the repository at this point in the history
Previously a wrong source-ref was passed to submit-job.py when running on the
master branch
  • Loading branch information
leezu authored and sxjscience committed Jul 7, 2019
1 parent 62da38e commit 6233e6e
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions ci/jenkins/Jenkinsfile_py3-master_gpu_doc
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,23 @@ core_logic: {
set +e
conda activate ./conda/cpu/py3
python3 ci/batch/submit-job.py --region us-east-1 --wait \
--timeout 1800 --saved-output ./docs/examples --conda-env docker/py3 \
--name GluonNLP-${env.BRANCH_NAME}-${env.BUILD_NUMBER} \
--save-path batch/${env.BRANCH_NAME}/${env.BUILD_NUMBER}/docs/examples \
--work-dir . --source-ref refs/pull/${env.CHANGE_ID}/head \
--command \"python3 docs/md2ipynb.py ${md_file} > ${stdout_file} 2> ${stderr_file} \"
BATCH_EXIT_CODE=\$?
if [ '${env.BRANCH_NAME}' = 'master' ]; then
python3 ci/batch/submit-job.py --region us-east-1 --wait \
--timeout 1800 --saved-output ./docs/examples --conda-env docker/py3 \
--name GluonNLP-${env.BRANCH_NAME}-${env.BUILD_NUMBER} \
--save-path batch/${env.BRANCH_NAME}/${env.BUILD_NUMBER}/docs/examples \
--work-dir . \
--command \"python3 docs/md2ipynb.py ${md_file} > ${stdout_file} 2> ${stderr_file} \"
BATCH_EXIT_CODE=\$?
else
python3 ci/batch/submit-job.py --region us-east-1 --wait \
--timeout 1800 --saved-output ./docs/examples --conda-env docker/py3 \
--name GluonNLP-${env.BRANCH_NAME}-${env.BUILD_NUMBER} \
--save-path batch/${env.BRANCH_NAME}/${env.BUILD_NUMBER}/docs/examples \
--work-dir . --source-ref refs/pull/${env.CHANGE_ID}/head \
--command \"python3 docs/md2ipynb.py ${md_file} > ${stdout_file} 2> ${stderr_file} \"
BATCH_EXIT_CODE=\$?
fi
aws s3api wait object-exists --bucket gluon-nlp-staging \
--key batch/${env.BRANCH_NAME}/${env.BUILD_NUMBER}/${stderr_file}
Expand Down

0 comments on commit 6233e6e

Please sign in to comment.