简体   繁体   中英

DockerHub Webhook trigger Jenkins build

I tried to use https://github.com/jenkinsci/dockerhub-plugin but failed. This project seems to be exactly what I want, but it seems that this project is not being actively developed. The documentation is basically 0. Is there any plan to move forward with this project? Is there any other project that can do same/similar things?

My project currently fails to pull the docker image from DockerHub. I need to install docker on the Jenkins host, right? And also my image on DockerHub is private. How can I pull the image?

So when configure the Jenkins project, I need to enter the "Image ID" for the image that it will pull from DockerHub. However the whole point is that I want Jenkins to do some testing and then tell DockerHub it passed or not and then DockerHub can publish the image or not. So is it possible to use the content of the WebHook that DockerHub sent to Jenkins to pull the image (which I believe is not published yet)?

Thank you very much!

--Gordon

I think a better plan is probably to abandon the DockerHub Webhook and build the image in Jenkins. You can then test the image in Jenkins and push to the DockerHub manually if it succeeds.

It's much easier and better supported to use GitHub/Bitbucket hooks and plugins to trigger the build than the DockerHub one (which doesn't seem to have had much activity for a while as you say).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM