The kubernetes plugin does that, so you can check for inspiration
https://github.com/jenkinsci/kubernetes-plugin/blob/master/README.md#pipeline-support

It would be nice to have a common syntax across container provisioners

On Tue, Jul 25, 2017, 14:55 Jesse Glick <[email protected]> wrote:

> The argument to `node` is a label expression, and the `Cloud` SPI
> allows interpretation of labels, so you could probably write something
> like
>
> node('nomad && nomaddocker:internal/jenkins-worker:v12 &&
> nomadmemlimit:4Gb') {…}
>
> --
> 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/CANfRfr166Uu4%2BjQn%2By5_Yy8%3DzuvBor_ADLqidr0K_0%2BzyWG7Tg%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CALHFn6MuxFMor-DnOtaBS%3DBE60-88tZ%3D6EBedsHfBbTjpMyr5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to