Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buildslaves on separate machines? #43

Open
mikepurvis opened this issue May 4, 2016 · 2 comments
Open

Buildslaves on separate machines? #43

mikepurvis opened this issue May 4, 2016 · 2 comments

Comments

@mikepurvis
Copy link

This role seems primarily focused on configuring the master. What would be my best path forward for setting up slaves on other boxes?

@rasputnik
Copy link

It really depends what you're trying to build. We've used the Swarm plugin to connect up workers successfully (because it doesn't require any manual steps) and then create a role for each workload we want to run, and configure the swarm agents environment to broadcast appropriate labels.

@mikepurvis
Copy link
Author

I ended up making a bespoke role specific to my workload, which boiled down to:

  • Install packages (debhelper, devscripts, git, cowbuilder, python-virtualenv, default-jre-headless)
  • create jenkins-slave user (with homedir, shell, etc).
  • inject SSH key from master
  • add known sources for our SCM providers (bitbucket, etc)
  • miscellaneous config files for the above.

And then I had to go in manually on the master and add each host from the web UI, including specifying the work dir.

So most of that is pretty customized to my scenario, but it does feel like there'd be room for a generic "Jenkins SSH Slave" role that could handle setting up the master's key, installing Java, and then wiring things up on the master end to talk to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants