1
0
Fork 0

agent now running as user jeknins

This commit is contained in:
Christian Kühnel 2019-10-14 18:13:46 +02:00
parent a88e8f2ce0
commit da30407385

View file

@ -26,5 +26,5 @@ chown -R jenkins:jenkins "${CCACHE_PATH}"
# TODO(kuhnel): wipe the disk(s) on startup
# start ssh server
java -jar /scripts/swarm-client.jar -master http://jenkins-ui.jenkins.svc.cluster.local:8080 -executors 1
# start swarm agent as user jenkins
su jenkins -c "java -jar /scripts/swarm-client.jar -master http://jenkins-ui.jenkins.svc.cluster.local:8080 -executors 1"