Thanks for your reply, it's not yet documented but I found issue which 
asserted that this feature is implemented.
Christopher's solution works.

W dniu piątek, 10 lutego 2017 10:39:49 UTC+1 użytkownik R Tyler Croy 
napisał:
>
> (replies inline) 
>
> On Thu, 09 Feb 2017, Bart??omiej Kruczyk wrote: 
>
> > Hi, I have problem with setting docker agent type for my pipeline. 
> > 
> > Although something like this works: 
> > 
> > 
> > agent { 
> >     docker 'myimage' 
> > 
> > } 
> > 
> > 
> > This does not: 
> > 
> > 
> > agent { 
> >     docker { 
> >         image: 'myimage' 
> > 
> >         registry: 'localhost:5000' 
> > 
> >     } 
> > } 
>
>
> As far as I am aware, there is no supported "registry" value inside that 
> `docker` block. 
>
>
> See also https://jenkins.io/doc/book/pipeline/syntax/#agent 
>
>
>
> - R. Tyler Croy 
>
> ------------------------------------------------------ 
>      Code: <https://github.com/rtyler> 
>   Chatter: <https://twitter.com/agentdero> 
>      xmpp: rty...@jabber.org <javascript:> 
>
>   % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F 
> ------------------------------------------------------ 
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e4134c0a-fb70-453e-9a53-e47a7762d507%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to