Create single use nodes

12 views
Skip to first unread message

Patrick van der Velde

unread,
Jan 10, 2017, 12:43:43 AM1/10/17
to Jenkins Users
Hi all

Is it possible for jenkins to use nodes only a for a single job instance? i.e. what I would like is this:

* A new job is queued
* Jenkins checks the job labels and determines which node template could be used to create a node
* Jenkins creates the node from the template and assigns the job to the node
* Once the job completes Jenkins deletes the node

I think the first few steps are possible with the 'clouds' approach (e.g. docker or nomad clouds) however what I haven't been able to figure out is the final step. I want a node to be used exactly once and then to be shut down. That way each job has a fresh environment to work with. Obviously that doesn't work with physical boxes (or even VMs, as the boot time is rather large) but it would work with containers.

Is there a plugin that can handle this?

Thanks

Petrik
Reply all
Reply to author
Forward
0 new messages