specific-silverS
Refine2y ago
7 replies
specific-silver

Build problems with Jenkins / Build inside a linux container

Hey everyone,

i'm currently facing an error in my build pipeline on jenkins. My app is a Spring Boot Maven project with a refine frontend. Everything works great on our local dev laptops. But on Jenkins insider a Docker-Build-Container running Linux i'm getting the following error:

"permission denied, mkdir '/.config/refine-update-notifier-nodejs"

For me it's clear that the root "/" is forbidden to write in. So I need your help to find a solution to give "refine build" another path for its config file.

Running 'npm run build' in /opt/jenkins/workspace/gipo-assistant/src/main/frontend
[INFO] 
[INFO] > gipo-assistant@0.3.0 build
[INFO] > tsc && refine build
[INFO] 
[INFO] node:internal/fs/utils:353
[INFO]     throw err;
[INFO]     ^
[INFO] 
[INFO] Error: EACCES: permission denied, mkdir '/.config/refine-update-notifier-nodejs'
[INFO]     at Object.mkdirSync (node:fs:1379:3)
[INFO]     at Conf._ensureDirectory (/opt/jenkins/workspace/gipo-assistant/src/main/frontend/node_modules/conf/dist/source/index.js:358:12)
[INFO]     at get store [as store] (/opt/jenkins/workspace/gipo-assistant/src/main/frontend/node_modules/conf/dist/source/index.js:284:22)
[INFO]     at new Conf (/opt/jenkins/workspace/gipo-assistant/src/main/frontend/node_modules/conf/dist/source/index.js:131:32)
[INFO]     at Object.<anonymous> (/opt/jenkins/workspace/gipo-assistant/src/main/frontend/node_modules/@refinedev/cli/dist/cli.cjs:3:9360)
[INFO]     at Module._compile (node:internal/modules/cjs/loader:1241:14)
[INFO]     at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
[INFO]     at Module.load (node:internal/modules/cjs/loader:1091:32)
[INFO]     at Module._load (node:internal/modules/cjs/loader:938:12)
[INFO]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) {
[INFO]   errno: -13,
[INFO]   syscall: 'mkdir',
[INFO]   code: 'EACCES',
[INFO]   path: '/.config/refine-update-notifier-nodejs'
[INFO] }
[INFO] 
[INFO] Node.js v20.9.0
Was this page helpful?