Jenkins cluster in my company runs builds as root user. How to configure cluster/build to run as a different user? Without root privileges ?
Builds always run under the user that runs the node agent process. So your options are
sudo
in a shell build step). This is more flexible, but plugin related-code (like SCM checkout) will still run under the root account.