jenkins-slave.service.erb 535 Bytes
Newer Older
1
2
3
4
5
6
[Unit]
Description=Jenkins slave node

[Service]
Type=simple
ExecStartPre=/usr/local/share/jenkins-slave-download <%= @master_url %>
7
8
9
10
# XXX: yields 403 once #16955
# ExecStartPre=/usr/local/share/jenkins-enable-node \
#     --orchestrator-url <%= @master_url %> \
#     --node-name <%= @domain == "lizard" ? @hostname : @fqdn %>
11
ExecStart=/usr/bin/java -jar /run/jenkins/slave.jar -jnlpUrl <%= @master_url %>/computer/<%= @node_name %>/slave-agent.jnlp
12
13
14
15
16
17
User=jenkins
LimitNOFILE=8192
Restart=always

[Install]
WantedBy=multi-user.target