We recently added registry support to Declarative - register the
credentials needed for the private registry in Jenkins' UI and then you can
do:

agent {
  docker {
    image "image name"
    registryUrl "https://wherever";
    registryCredentialsId "credsId"
  }
}

On Fri, Jan 27, 2017 at 9:43 AM Natalia Serebryakova <
[email protected]> wrote:

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi
>
>
>
>
> I checked  the documentation and GH wiki, but I can’t find a way to
> specify docker build (agent) from a private Docker hub  repo.
>
>
> Meaning if our company has a private account on Docker Hub, how do I add
> image from that repo to the Jenkisnfile?
>
>
> Pipeline {
>
>
>   agent {
>
>
>     the label 'whatever.'
>
>
>   }
>
>
>
>
> How do I specify Docker hub credentials?
>
>
>
>
>
> Thank you,
>
>
> Natalie
>
>
>
>
>
>
>
>
> --
>
>
> 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/d7aacef9-6a25-4424-b46c-c84dc2241e77%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/d7aacef9-6a25-4424-b46c-c84dc2241e77%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/CAPbPdObhKW3Zc%3D5fXPhTuLgEywxBA0uzpQyCf6nkiTq5ysYLHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to