Skip to content

Instantly share code, notes, and snippets.

@74th
Last active July 4, 2017 05:34
Show Gist options
  • Save 74th/7bd1e0369afdde06e7867a56654e5f59 to your computer and use it in GitHub Desktop.
Save 74th/7bd1e0369afdde06e7867a56654e5f59 to your computer and use it in GitHub Desktop.
Jenkins Slave用systemdのサービス
[Unit]
Description=Jenkins
After=network.target
[Service]
Type=simple
User=jenkins
Group=jenkins
WorkingDirectory=/home/jenkins/
ExecStart=/usr/bin/java -jar /home/jenkins/slave.jar -jnlpUrl https://jenkins-master/computer/slave-name/slave-agent.jnlp -secret xxxxx -noCertificateCheck
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment