Skip to content

Instantly share code, notes, and snippets.

View klrmn's full-sized avatar

Leah Klearman klrmn

View GitHub Profile
@dbishop
dbishop / README
Last active April 8, 2019 22:06
Jenkins Systemd party time
You put the service file in `/lib/systemd/system/`
On each server, for each slave name, create a file named
/var/lib/jenkins/SLAVENAME.env
and edit it to have right SLAVE and SECRET values.
Then make one symlink like this for each slave name (e.g. "light-jobs" or "medium-jobs" or "tasks":
ln -s /lib/systemd/system/jenkins-slave@.service /etc/systemd/system/multi-user.target.wants/jenkins-slave@THENAME.service
e.g.
import ConfigParser
from selenium import webdriver
class WebdriverFactory(object):
def setup_selenium_from_config(self, config):
"""Start selenium with values from config file, or defaults
rather than requiring the command-line options. File must be
ConfigParser compliant and have a section called 'SELENIUM'.
"""