{"id":20159405,"url":"https://github.com/jenkinsci/dockerhub-notification-plugin","last_synced_at":"2025-04-06T07:14:54.352Z","repository":{"id":32369016,"uuid":"35945181","full_name":"jenkinsci/dockerhub-notification-plugin","owner":"jenkinsci","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-24T05:37:27.000Z","size":698,"stargazers_count":41,"open_issues_count":5,"forks_count":47,"subscribers_count":105,"default_branch":"master","last_synced_at":"2025-03-30T06:08:38.392Z","etag":null,"topics":["docker"],"latest_commit_sha":null,"homepage":"https://plugins.jenkins.io/dockerhub-notification/","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jenkinsci.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-20T11:59:51.000Z","updated_at":"2025-02-21T19:42:33.000Z","dependencies_parsed_at":"2023-01-14T21:03:14.957Z","dependency_job_id":"ad602b3d-4a7c-499c-948f-655d17e39025","html_url":"https://github.com/jenkinsci/dockerhub-notification-plugin","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkinsci%2Fdockerhub-notification-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkinsci%2Fdockerhub-notification-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkinsci%2Fdockerhub-notification-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkinsci%2Fdockerhub-notification-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenkinsci","download_url":"https://codeload.github.com/jenkinsci/dockerhub-notification-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445681,"owners_count":20939961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker"],"created_at":"2024-11-14T00:07:54.724Z","updated_at":"2025-04-06T07:14:54.316Z","avatar_url":"https://github.com/jenkinsci.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"CloudBees Docker Hub/Registry Notification\n================\n\nThis plugin provides integration between \n* Jenkins and Docker Hub\n* Jenkins and Docker Registry 2.0\n\nIt does so by utilizing webhooks to trigger one (or more) Jenkins job(s).\nThis allows you to implement continuous delivery pipelines based on Docker in Jenkins.\n\nWhen Jenkins receives a notification of an updated image that is a web-hook from\nDocker Hub, it triggers all jobs that have the Docker Hub\ntrigger enabled and use the Docker image as part of the build. A\nDocker Hub Pull build step is provided to retrieve the latest image from\nHub.\n\n# Configuring Docker Hub\n\nOn the Jenkins Configure Global Security page add an api key.\n\n\u003cimg src=\"apitoken.png\"\u003e\n\nConfigure your Docker Hub repository with a webhook to your public jenkins instance `http://JENKINS/dockerhub-webhook/{api-key}/notify`\n\nIn your \u003ca href=\"https://hub.docker.com/\"\u003ehub.docker.com\u003c/a\u003e repository, you can find the \"webhooks\" section and point it to your jenkins instance: \n\n\u003cimg src=\"dockerhub.png\"\u003e\n\n# Configuring Docker Registry 2.0\n\nFollow Docker Registry 2.0 [documentation](https://docs.docker.com/registry/notifications/) on how to configure registry so that it would send notifications to `http://JENKINS/dockerregistry-webhook/{api-key}/notify`\n\nThe simplest viable configuration looks like this:\n```\n  notifications:\n    endpoints:\n      - name: jenkinslistener\n        url: http://JENKINS/dockerregistry-webhook/{api-key}/notify\n        timeout: 500ms\n        threshold: 5\n        backoff: 1s\n```\n\n# Configuring Azure Container Registry\n\nYou can find a detailed guide on how to configure webhooks on ACR on\n[docs.microsoft.com](https://docs.microsoft.com/en-us/azure/container-registry/container-registry-webhook).\nUse `http://JENKINS/acr-webhook/{api-key}/notify` as a \"Service URI\".\n\n\n# Examples\n\nPayloads submitted by the hub:\n\n* [Payload from your own repository](src/test/resources/own-repository-payload.json).\n* [Payload from a public repository](src/test/resources/public-repository-payload.json).\n\nPayloads submitted by the registry:\n\n* [Payload from your own registry](/src/test/resources/private-registry-payload-1-repository.json).\n\nThe plugin can be tested with\n\n```bash\n    curl -X POST -H \"Content-Type: application/json\" http://localhost:8080/jenkins/dockerhub-webhook/{api-key}/notify -d @src/test/resources/public-repository-payload.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenkinsci%2Fdockerhub-notification-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenkinsci%2Fdockerhub-notification-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenkinsci%2Fdockerhub-notification-plugin/lists"}