You can't use 'container' with freestyle jobs, there's no way to switch
containers .
IIRC you can set the default container to be different than jnlp

On Thu, Apr 4, 2019, 20:34 Sean Walberg <[email protected]> wrote:

> Hi,
>
> The kubernetes-plugin has the "container" keyword to run commands inside
> the given container instead of the default jnlp sidecar. Is there an
> equivalent in Job DSL?
>
> We have everything defined in Job DSL as freestyle jobs and I'm able to
> point a job to the Kubernetes label and it'll spin up the containers, but
> everything gets run in the jnlp container, not the one I defined in the
> global config. The container keyword fixes it if I make a Pipeline job but
> unfortunately we don't use that.
>
> Thanks,
>
> Sean
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" 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-users/940dcae2-e0d8-4b44-83c5-b0640b3e204d%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/940dcae2-e0d8-4b44-83c5-b0640b3e204d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" 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-users/CALHFn6OPsT3m%3D5JLaCh%3DZc%2BFdNYT%2BJ2r2%2BUzmbP9VPJu6kNKqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to