Ubuntu – How can I run sh commands in Jenkins without sudo
Right now my Jenkins runs without any errors with this commands; stage("Deliver for Development"){ agent any when { branch "development" } steps{ sh 'sudo rm -rf /var/www/jenkins-weather-app' sh "sudo cp -r ${env.WORKSPACE}/build /var/www/jenkins-weather-app" sh "sudo ls /var/www/jenkins-weather-app" // sh './scripts/kill.sh'…