Hi there,


On Thu, 9 Feb 2017, at 13:38, Bartłomiej Kruczyk wrote:

> agent {
>     docker {
>         image: 'myimage'

>         registry: 'localhost:5000'



>     }
> }
> 





A couple of points:



1. The syntax documentation is wrong at the moment: you should not add a
   colon after the key
2. The key you're looking for is "registryUrl"



Source: 
https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/3222d5a/pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/AbstractDockerAgent.java#L33-L37


For example:

agent {

  docker {

    image 'foo'

    registryUrl 'registry.example.com'

  }

}



Regards,

Chris




-- 
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/1486726573.373537.876691200.05BF2406%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to