sudo inside Jenkins pipeline script
问题 We have the following setup: We have few UNIX boxes. There are users provisioned to these boxes (ex: spande ). These users have limited privileges, but can do sudo to elevate the permissions (sudo user: admin ). The sudo happens without any password. We have a CICD tool in Jenkins which uses these Unix boxes as slave. We have spande credentials to login into this unix servers via Jenkins. We are using Jenkins Pipeline Scripts (groovy). All is well, but we want the Jenkins script to run with a