Skip to content

Commit

Permalink
Merge pull request #1357 from cherrycl/disable-htmlfooter
Browse files Browse the repository at this point in the history
fix: Set ENABLED_HTMLPROOFER=true only on PR validation
  • Loading branch information
cloudxxx8 authored Jun 28, 2024
2 parents 6f08935 + 30d502a commit 7238ec3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ pipeline {
triggers {
issueCommentTrigger('.*^recheck$.*')
}
environment {
ENABLED_HTMLPROOFER = true
}
stages {
stage('Build Docs') {
agent {
Expand All @@ -23,11 +20,16 @@ pipeline {
}
}
steps {
retry(4) {
sh 'mkdocs build'
sh 'sleep 5' // add a little delay to avoid potential rate limiting issues
}
script {
if ((env.BRANCH_NAME).startsWith('PR-')) {
env.ENABLED_HTMLPROOFER = true
}

retry(4) {
sh 'mkdocs build'
sh 'sleep 5' // add a little delay to avoid potential rate limiting issues
}
}
// stash the site contents generated from mkdocs build
stash name: 'site-contents', includes: 'docs/**', useDefaultExcludes: false
}
Expand Down

0 comments on commit 7238ec3

Please sign in to comment.