node("docker") {
    docker.withRegistry('<<your-docker-registry>>', 
'<<your-docker-registry-credentials-id>>') {
  …
  }
}

From: <jenkinsci-users@googlegroups.com> on behalf of Natalia Serebryakova 
<nataliasere...@gmail.com>
Reply-To: "jenkinsci-users@googlegroups.com" <jenkinsci-users@googlegroups.com>
Date: Friday, January 27, 2017 at 9:43 AM
To: Jenkins Users <jenkinsci-users@googlegroups.com>
Subject: how to setup pipeline {agent} from the private Docker hub repo?


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 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/76C26F0B-9633-4352-B9F5-405DAF7735CF%40cisco.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to