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