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

Markdown build badge does not show for a job with spaces in it

    XMLWordPrintable

Details

    • v2.0-beta1

    Description

      Description:
      If I have a job called "My Cool Job", and I go to the Embeddable Build Status Plugin, and choose any Markdown build status, and paste it in a Markdown file (say README.md), it won't show the build badge.

      Expected:
      The markdown code for the build status badge shows the badge for the job which has spaces in its name.

      Actual:
      The markdown code for the build status badge does not show the badge for the job which has spaces in its name.

      Example:
      For a job called "My Cool Job" and branch "master" this is the Markdown generated:
      [![Build Status](https://myserver.com/buildStatus/icon?job=My Cool Job/master)](https://myserver.com/job/My Cool Job/job/master/)

      Note that the spaces in "My Cool Job" are not URL encoded. The spaces should be replaced with "%20".
       

      Attachments

        Activity

          shazron Shazron Abdullah created issue -
          thomas_dee Thomas Döring made changes -
          Field Original Value New Value
          Assignee Antonio Muñiz [ amuniz ] Thomas Döring [ thomas_dee ]
          thomas_dee Thomas Döring made changes -
          Labels v2.0
          thomas_dee Thomas Döring made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          thomas_dee Thomas Döring made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Fixed but Unreleased [ 10203 ]
          thomas_dee Thomas Döring made changes -
          Released As v2.0-beta1
          Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
          thomas_dee Thomas Döring made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          People

            thomas_dee Thomas Döring
            shazron Shazron Abdullah
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: