Browse Source

Fix CI, use docker for a yarn command

Jamie Curnow 4 years ago
parent
commit
afbec0aca9
1 changed files with 6 additions and 2 deletions
  1. 6 2
      Jenkinsfile

+ 6 - 2
Jenkinsfile

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