Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50451

Provide badge for Cloudbees Docker Hub Notification

    Details

    • Similar Issues:

      Description

      Builds triggered via https://wiki.jenkins.io/display/JENKINS/CloudBees+Docker+Hub+Notification at the moment display a question mark with the alt text "Triggered by push of ... to DockerHub@..."

      The text is a good workaround to understand the trigger, a badge could be helpful to see it at a glance.

        Attachments

          Activity

          Hide
          batmat Baptiste Mathus added a comment - - edited

          Giorgio Sironi sorry, I forgot about this one.
          Could you pretty please provide the associated classname for that cause?

          See https://wiki.jenkins.io/display/JENKINS/Build+Trigger+Badge+Plugin doc to see how to.

          Basically using https://yourjenkinsserver/job/somejob/15/api/xml?xpath=//cause&wrapper=causes_ and providing the output would help do this very easily.

          it's a action that should be matter of seconds if you can access your instance.

          Thank you!

          Show
          batmat Baptiste Mathus added a comment - - edited Giorgio Sironi sorry, I forgot about this one. Could you pretty please provide the associated classname for that cause? See https://wiki.jenkins.io/display/JENKINS/Build+Trigger+Badge+Plugin doc to see how to. Basically using https://yourjenkinsserver/job/somejob/15/api/xml?xpath=//cause&wrapper=causes_ and providing the output would help do this very easily. it's a action that should be matter of seconds if you can access your instance. Thank you!
          Hide
          giorgiosironi Giorgio Sironi added a comment -

          We stopped using this, but I went back to an old build and got:

          <causes_><cause _class="org.jenkinsci.plugins.registry.notification.webhook.dockerhub.DockerHubWebHookCause"><shortDescription>Triggered by push of xpub/xpub-elife to DockerHub@registry.hub.docker.com</shortDescription></cause></causes_

          Hope it helps.

          Show
          giorgiosironi Giorgio Sironi added a comment - We stopped using this, but I went back to an old build and got: <causes_><cause _class= "org.jenkinsci.plugins.registry.notification.webhook.dockerhub.DockerHubWebHookCause" ><shortDescription>Triggered by push of xpub/xpub-elife to DockerHub@registry.hub.docker.com</shortDescription></cause></causes_ Hope it helps.
          Hide
          batmat Baptiste Mathus added a comment -

          I lack a bit of time to do this these days, but in case anyone wants to give it a try, it is really simple. Similar PR as an example https://github.com/jenkinsci/buildtriggerbadge-plugin/pull/19

          Just marked this PR as newbie-friendly.

          Thanks!

          Show
          batmat Baptiste Mathus added a comment - I lack a bit of time to do this these days, but in case anyone wants to give it a try, it is really simple. Similar PR as an example https://github.com/jenkinsci/buildtriggerbadge-plugin/pull/19 Just marked this PR as newbie-friendly. Thanks!

            People

            • Assignee:
              Unassigned
              Reporter:
              giorgiosironi Giorgio Sironi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: