fix: resolve npm cache EACCES in Jenkins pipeline
This commit is contained in:
Vendored
+2
@@ -16,6 +16,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
npm config set cache /.npm
|
npm config set cache /.npm
|
||||||
|
chown -R $(id -u):$(id -g) /.npm 2>/dev/null || true
|
||||||
npm install
|
npm install
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
@@ -30,6 +31,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
|
chown -R $(id -u):$(id -g) /.npm 2>/dev/null || true
|
||||||
npm run type-check
|
npm run type-check
|
||||||
npm run build
|
npm run build
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user