From d0932a834ba14e3587fa7e6e9fc8a29bcf63e1b9 Mon Sep 17 00:00:00 2001 From: Dennisan Date: Sat, 25 Apr 2015 11:48:41 -0700 Subject: [PATCH] launch slave in background --- jenkins-on-ubuntu/jenkSlaveInstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"