Skip to content

Commit

Permalink
CI: don’t build jekyll redirects for now
Browse files Browse the repository at this point in the history
Signed-off-by: Adrien Duermael <adrien@duermael.com>
  • Loading branch information
aduermael committed Dec 16, 2016
1 parent e61ae7e commit d10d2b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ wrappedNode(label: 'linux && x86_64') {
stage "checkout"
checkout scm
stage "test"

# Jekyll creates html files to implement client side redirects.
# There are absolute links to docs.docker.com in these htmls
# we don't want them to be parsed by the tests for now.
# Removing jekyll-redirect-from option will make sure these pages
# are not generated when building with Jekyll.
sh "awk '/jekyll-redirect-from/{n=1}; n {n--; next}; 1' < _config.yml > _config.yml.tmp"
sh "mv _config.yml.tmp _config.yml"
sh "docker build -t docs `pwd`"
sh "docker build -t tests `pwd`/tests"
sh "docker run -v /usr/src/app/allvbuild --name docs docs /bin/true"
Expand Down

0 comments on commit d10d2b2

Please sign in to comment.