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

Provide badge for Cloudbees Docker Hub Notification

      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.

          [JENKINS-50451] Provide badge for Cloudbees Docker Hub Notification

          Baptiste Mathus added a comment - - edited

          giorgiosironi 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!

          Baptiste Mathus added a comment - - edited giorgiosironi 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!

          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.

          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.

          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!

          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!

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

              Created:
              Updated: