jenkins-slave.service.erb 340 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=Jenkins slave node

[Service]
Type=simple
ExecStartPre=/usr/local/share/jenkins-slave-download <%= @master_url %>
ExecStart=/usr/bin/java -jar /run/jenkins/slave.jar -jnlpUrl <%= @master_url %>/computer/<%= @node_name %>/slave-agent.jnlp
User=jenkins
LimitNOFILE=8192
Restart=always

[Install]
WantedBy=multi-user.target