node("docker") {
docker.withRegistry('<<your-docker-registry>>',
'<<your-docker-registry-credentials-id>>') {
…
}
}
From: <[email protected]> on behalf of Natalia Serebryakova
<[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Friday, January 27, 2017 at 9:43 AM
To: Jenkins Users <[email protected]>
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
[email protected]<mailto:[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/76C26F0B-9633-4352-B9F5-405DAF7735CF%40cisco.com.
For more options, visit https://groups.google.com/d/optout.