OS: MacOS
In my jenkins job contain string npm run build
. It run npm scripts, if I run this command from terminal as sudo all is ok, but in my Jenkins this command is laoding endlessly. No errors, no logs, just endless loading.
In /etc/sudoers
I added the string:
jenkins ALL=(ALL) NOPASSWD:ALL
But it doesn't help me. Please help me.
The most probable problem is that you would have to specify the full path of npm
, something like /usr/bin/npm
instead of npm
.