That worked like a charm. I had found issue
https://issues.jenkins-ci.org/browse/JENKINS-39684, and source file you are
referring but I didn't known what declarative syntax expression it should
be.
Thank you!
W dniu piątek, 10 lutego 2017 13:02:33 UTC+1 użytkownik Christopher Orr
napisał:
>
> Quick correction:
>
> On Fri, 10 Feb 2017, at 12:36, Christopher Orr wrote:
>
> 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'
> }
> }
>
>
> The 'registryUrl' value needs to be a proper URI, e.g. '
> https://registry.hub.docker.com'
>
> -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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/0dfb81c8-8b07-4d4c-9d11-f02b925a7e6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.