On Sat, Mar 28, 2015 at 5:12 PM, Kanstantsin Shautsou
<[email protected]> wrote:
>> OnceRetentionStrategy has no descriptor because it makes no sense to
>> select on a static slave, and clouds generally hardcode the desired strategy.
>
> Every plugin that uses it creates own UI form with different help files and UI

Every plugin? Not that I am aware of. For example
DockerTemplate.provision is hardcoding it.

> there is no way to provide choosing different Cloud strategies for end user

I think this is intentional—in general for a Cloud, the user should
not have to choose a strategy, one should be selected by the plugin
author according to the nature of the cloud implementation. For some
clouds there is a reasonable choice between two or more modes but I am
not convinced that this is best expressed by offering an arbitrary
RetentionStrategy in a pulldown—not all of them will be appropriate in
this context.

> that DumbSlave is not compatible with this strategy is also under
> question, for example i want accept only one job and then delete DumbSlave.

This makes no sense. You would have to manually go and create a new
slave after every build. Who would do that?

> Some users wants to have 2 executers on slave

Then they should not be using OnceRetentionStrategy. (Though for a
Docker slave the only reason to do this is to save the startup & class
loading time for the slave agent, which seems a poor tradeoff compared
to the lack of isolation between builds.)

> The only difference
> that i see between Once and Cloud that once supports not killing slave until
> durable task isn't end.

The support for durable tasks is a side benefit. The main point is
killing the slave immediately once the single build finishes.
Previously there were many slightly different implementations of this
strategy.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3GKoVVERYkcMeUidkuL4dHvjw5kB2CsgdkOT%2B9F%3D6GVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to