systemd script for jenkins OPEs (slaves)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=CloudBeees On Prem executor | |
Documentation=https://developer.cloudbees.com/bin/view/DEV/On-Premise+Executors | |
Requires=network.target | |
After=multi-user.target | |
[Service] | |
Type=simple | |
ExecStart=/opt/java6/bin/java -jar /usr/share/jenkins-cli.jar -s https://cloudbees.ci.cloudbees.com on-premise-executor -fsroot /workspace -labels docker -nam\ | |
e docker-builder-1 | |
Restart=always | |
RestartSec=60 | |
StartLimitInterval=0 | |
User=<changeme> | |
[Install] | |
WantedBy=multi-user.target | |
# | |
# To install: | |
# | |
# ensure all names and paths above are correct for you: | |
# | |
# install -D -m 644 ope.service /usr/lib/systemd/system/ope.service | |
# systemctl daemon-reload | |
# systemctl start ope | |
# systemctl enable op |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment