Sudo command not found (error in Jenkins execute shell) Sudo command not found (error in Jenkins execute shell) unix unix

Sudo command not found (error in Jenkins execute shell)


Jenkins runs with 'jenkins` user. Just cause it works in terminal with your logged in user, doesn't mean that it's configured to work with 'jenkins' user.

From your terminal, do:
sudo su jenkins
and then try running sudo from jenkins's user