Skip to content

Commit afbec0a

Browse files
committed
Fix CI, use docker for a yarn command
1 parent a21289b commit afbec0a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Jenkinsfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,12 @@ pipeline {
144144
}
145145
steps {
146146
dir(path: 'docs') {
147-
sh 'yarn install'
148-
sh 'yarn build'
147+
sh '''docker run --rm \\
148+
-v "$(pwd):/app" \\
149+
-w /app \\
150+
node:latest \\
151+
sh -c "yarn install && yarn build"
152+
'''
149153
}
150154

151155
dir(path: 'docs/.vuepress/dist') {

0 commit comments

Comments
 (0)