When i am running npm build through jenkins pipeline...i get following "chown op . . .

naga Surendranath:
when i am running npm build through jenkins pipeline…i get following “chown operation not permitted”… Would be great if any clue.
I tried to login to pod and run locally “npm run build-ui-util”… the same error i got like “chown operation not permitted”
I have given “runAsUser : 0” in my pod definition file

Madhan Kumar:
Uid 0 does not always point to root user. try sudo chown or login to container interactively nd type ‘id’ to find the uid of the root user .

Madhan Kumar:
https://elearning.wsldp.com/pcmagazine/chown-operation-not-permitted/|https://elearning.wsldp.com/pcmagazine/chown-operation-not-permitted/

naga Surendranath:
We did specify with uid in script …But same error