Thank you, this is exactly what i was looking for. 

Natalie

On Friday, January 27, 2017 at 4:17:15 PM UTC-8, Andrew Bayer wrote:
>
> 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] 
> <javascript:>> 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] <javascript:>.
>>
>>
>> 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/294d09e4-56c7-4a72-9802-52fd1cc3d38a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to