diff --git a/jenkins-on-ubuntu/jenkSlaveInstall.sh b/jenkins-on-ubuntu/jenkSlaveInstall.sh index 78c2d0a..3cce654 100644 --- a/jenkins-on-ubuntu/jenkSlaveInstall.sh +++ b/jenkins-on-ubuntu/jenkSlaveInstall.sh @@ -27,5 +27,5 @@ wget http://$MASTERNODE:8080/jnlpJars/slave.jar -O ~/slave.jar chmod 777 ~/slave.jar echo "Executing slave.jar with http://$MASTERNODE:8080/computer/$SLAVENODE/slave-agent.jnlp" -sudo java -jar ~/slave.jar -jnlpUrl http://$MASTERNODE:8080/computer/$SLAVENODE/slave-agent.jnlp +su -c "java -jar ~/slave.jar -jnlpUrl http://$MASTERNODE:8080/computer/$SLAVENODE/slave-agent.jnlp"