jenkinsci / nomad-plugin

Nomad cloud plugin for Jenkins
https://plugins.jenkins.io/nomad/
MIT License
56 stars 41 forks source link

'Utilize as much as possible' not behaving as expected #10

Closed far-blue closed 8 years ago

far-blue commented 8 years ago

Maybe I've mis-understood something but I set the nomad-cloud config to 'Utilize as much as possible' and scaled back my normal slave nodes to minimum but jobs were simply queueing rather than new nomad-cloud nodes spinning up. Any idea how to fix this? It works when I restrict where a build can run to just the nomad cloud but I'd prefer not to do that.

antweiss commented 8 years ago

@far-blue - that's pretty easy - just leave the label definition on your Nomad slave template empty, or use the same label you're using for rest of the slaves.

far-blue commented 8 years ago

thanks for the help - I'd never have thought of leaving the labels empty :) With 'swarm' slaves the existence of a label doesn't prevent jobs being allocated. Got it all working nicely now with a mix of on-demand and static slaves (swarm slaves, still managed through Nomad).