Browse Source

Fix CI, use docker for a yarn command

Jamie Curnow 4 năm trước cách đây
mục cha
commit
afbec0aca9
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  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') {