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

Embeddable build status plugin shows build not run

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.361.1
      Embeddable build status 255.va_d2370ee8fde
      Ubuntu 18.04

      I've recently upgraded Jenkins to the latest stable version Jenkins 2.361.1 and latest Embeddable build status plugin version 255.va_d2370ee8fde (from 2.0.3).
      And now all the badges on Confluence and Bitbucket show grey fallback icon "build not run"
      I have double checked that all the links are double encoded, e.g.
      https://jenkins.domain.net/buildStatus/icon?job=my-branches%252Fmain!
      I also tried with %2Fmain but to no avail.

      Jenkins and Confluence are connected over crowd2 plugin (that was also updated to version 3.1.2), so there are no users in Jenkins as such, auth is managed by Confluence/Jira

      My understanding is that Jenkins and Confluence can connect just fine, otherwise I wouldn't even see the fallback icon.
      Current Authorization method is "Logged-in users can do anything" and " Allow anonymous read access" is disabled. If I enable it - build status icons start to work, but I don't really want to do that to be honest.

      I also asked on the forum and it was suggested that

      there should be a new permission you can enable that allows badges only

      but I cannot see it.

          [JENKINS-69872] Embeddable build status plugin shows build not run

          Akilesh DS added a comment -

          We face the same issue in the latest version of Jenkins (2.361.2)

          Embeddable build status plugin version: 281.vb_047b_375cdb_9

          Currently its possible to get status if we grant anonymous user with Job: viewStatus permission. We want to avoid that (security reasons)

          Is there any way that we can visualize the build status via README by passing the user credentials of jenkins user in the build status url

          http://username:password@your-jenkins-server:port/

          Any other solutions, work arounds are welcome.

          Thanks in advance!{}

          Akilesh DS added a comment - We face the same issue in the latest version of Jenkins (2.361.2) Embeddable build status plugin version: 281.vb_047b_375cdb_9 Currently its possible to get status if we grant anonymous user with Job: viewStatus permission. We want to avoid that (security reasons) Is there any way that we can visualize the build status via README by passing the user credentials of jenkins user in the build status url http://username:password@your-jenkins-server:port/ Any other solutions, work arounds are welcome. Thanks in advance!{ }

            Unassigned Unassigned
            enigo Ruslan S.
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: