Fix CI, use docker for a yarn command

This commit is contained in:
Jamie Curnow 2021-03-11 08:41:10 +10:00
parent a21289bf11
commit afbec0aca9

8
Jenkinsfile vendored
View File

@ -144,8 +144,12 @@ pipeline {
} }
steps { steps {
dir(path: 'docs') { dir(path: 'docs') {
sh 'yarn install' sh '''docker run --rm \\
sh 'yarn build' -v "$(pwd):/app" \\
-w /app \\
node:latest \\
sh -c "yarn install && yarn build"
'''
} }
dir(path: 'docs/.vuepress/dist') { dir(path: 'docs/.vuepress/dist') {