Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AnirudhDagar authored Feb 27, 2023
1 parent e75560c commit 7d17369
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ stage("Build and Publish") {
./static/build_html.sh
"""

// sh label:"Build PDF", script:"""set -ex
// conda activate ${ENV_NAME}
// d2lbook build pdf
// """
sh label:"Build PDF", script:"""set -ex
conda activate ${ENV_NAME}
d2lbook build pdf
"""

// sh label:"Build Pytorch PDF", script:"""set -ex
// conda activate ${ENV_NAME}
// d2lbook build pdf --tab pytorch
// """
sh label:"Build Pytorch PDF", script:"""set -ex
conda activate ${ENV_NAME}
d2lbook build pdf --tab pytorch
"""

if (env.BRANCH_NAME == 'release') {
sh label:"Release", script:"""set -ex
Expand All @@ -81,7 +81,7 @@ stage("Build and Publish") {
} else {
sh label:"Publish", script:"""set -ex
conda activate ${ENV_NAME}
d2lbook deploy html --s3 s3://preview.d2l.ai/${JOB_NAME}/
d2lbook deploy html pdf --s3 s3://preview.d2l.ai/${JOB_NAME}/
"""
if (env.BRANCH_NAME.startsWith("PR-")) {
pullRequest.comment("Job ${JOB_NAME}/${BUILD_NUMBER} is complete. \nCheck the results at http://preview.d2l.ai/${JOB_NAME}/")
Expand Down

0 comments on commit 7d17369

Please sign in to comment.