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
node("docker") {
docker.withRegistry('<<your-docker-registry>>', '<<your-docker-registry-credentials-id>>') {
…
--
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-use...@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.
For more options, visit https://groups.google.com/d/optout.