-
Notifications
You must be signed in to change notification settings - Fork 168
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
Add more labels to machines #934
Comments
Would it not be possible to label all machines manually? I assume the Jenkins would skip the currently offline machines while looking for a machine with such a label? |
Possible but laborious (there are currently 150 machines), and error prone... |
We also don't currently automate the adding of a newly provisioned machine to Jenkins. If we had a script for that, we could add the labels there.
Correct |
There's a chicken&egg problem, we need to register the machine in J to get the secret, and we need to secret to ansible a machine. Maybe we need:
|
This is the bit that needs automating. Hopefully there's an api equivalent to:
|
Closing due to long period of inactivity. Feel free to re-open if this is a thing. I'm just trying to close stuff that has been ignored for sufficiently long that it seems likely it's not something we're going to get to. |
I've been thinking about this for a while, but @TimothyGu brought it up in #419 (comment), so it seems time
There is a way, we're just not implementing it in our Jenkins instance.
What we do in our (IBM) Jenkins is define a bunch of labels for each machine, so
ubuntu1610-x64
would have labels:x64 linux ubuntu ubuntu1610
, that way you can just specifylinux
to get the next available linux (or whatever you want). However we don't currently do that in CI.What would be ideal is something that autogenerates the labels when a machine connects. Something like this Plugin might be helpful, although that plugin in particular doesn't look like it'll give us all the labels we'd need.
We'd probably want:
ubuntu1610-x64
x64
,ppc64
,s390x
linux
,win
,aix
,darwin
,freebsd
,smartos
ubuntu
:ubuntu
,macos
ubuntu16.10
,macos10.12
refack: fixed formating
The text was updated successfully, but these errors were encountered: