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

Build description longer than 30 chars has hex zero width space added

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Jenkins 1.596.1, 2.124
    • Similar Issues:
    • Released As:
      Jenkins 2.276

      Description

      We use a Groovy script to write the package version into the build description of a job after it completes. Users then copy this from the Jenkins UI and paste it to perform a deploy. I have discovered occasional strange issues with this where what seems to be a valid version number is not found by our deploy system. Eventually I figured out that Jenkins is inserting a

      ​

      in the string if it exceeds 30 chars. This is invisible (obviously) in the UI but gets captured when the text is selected and copied/pasted (at least with Chrome on MacOS). This is a problem because this copy-paste workflow has been embedded here for several years, and a recent Jenkins upgrade has thrown this entropy into it

        Attachments

          Issue Links

            Activity

            owenmehegan Owen Mehegan created issue -
            danielbeck Daniel Beck made changes -
            Field Original Value New Value
            Assignee Daniel Beck [ danielbeck ]
            Description We use a Groovy script to write the package version into the build description of a job after it completes. Users then copy this from the Jenkins UI and paste it to perform a deploy. I have discovered occasional strange issues with this where what seems to be a valid version number is not found by our deploy system. Eventually I figured out that Jenkins is inserting a ​ in the string if it exceeds 30 chars. This is invisible (obviously) in the UI but gets captured when the text is selected and copied/pasted (at least with Chrome on MacOS). This is a problem because this copy-paste workflow has been embedded here for several years, and a recent Jenkins upgrade has thrown this entropy into it :) We use a Groovy script to write the package version into the build description of a job after it completes. Users then copy this from the Jenkins UI and paste it to perform a deploy. I have discovered occasional strange issues with this where what seems to be a valid version number is not found by our deploy system. Eventually I figured out that Jenkins is inserting a {code}​{code} in the string if it exceeds 30 chars. This is invisible (obviously) in the UI but gets captured when the text is selected and copied/pasted (at least with Chrome on MacOS). This is a problem because this copy-paste workflow has been embedded here for several years, and a recent Jenkins upgrade has thrown this entropy into it :)
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 162624 ] JNJira + In-Review [ 180996 ]
            danielbeck Daniel Beck made changes -
            Link This issue is blocking JENKINS-40663 [ JENKINS-40663 ]
            markhu Mark Hudson made changes -
            Link This issue is duplicated by JENKINS-40663 [ JENKINS-40663 ]
            markhu Mark Hudson made changes -
            Link This issue relates to JENKINS-39443 [ JENKINS-39443 ]
            patrickdepinguin Thomas De Schampheleire made changes -
            Environment Jenkins 1.596.1 Jenkins 1.596.1, 2.124
            grzegorz_dubicki Greg Dubicki made changes -
            Link This issue is related to JENKINS-38666 [ JENKINS-38666 ]
            grzegorz_dubicki Greg Dubicki made changes -
            Link This issue is related to JENKINS-26406 [ JENKINS-26406 ]
            grzegorz_dubicki Greg Dubicki made changes -
            Link This issue is duplicated by JENKINS-38666 [ JENKINS-38666 ]
            grzegorz_dubicki Greg Dubicki made changes -
            Link This issue is related to JENKINS-38666 [ JENKINS-38666 ]
            markewaite Mark Waite made changes -
            Released As Jenkins 2.276
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              owenmehegan Owen Mehegan
              Votes:
              19 Vote for this issue
              Watchers:
              25 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: