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

Blue Ocean should respect build.displayName

    Details

    • Sprint:
      Blue Ocean 1.1-beta4
    • Similar Issues:

      Description

      Scope

      • Show the display name in the messages column of activity
      • Show the display name in the triggered area of the result

      Original request
      Code allows you to set:

      currentBuild.displayName = 'foo'
      

      But Blue ocean does not respect it. Attached: classic and BO views.

        Attachments

          Issue Links

            Activity

            Hide
            jamesdumay James Dumay added a comment -

            Will be released in Blue Ocean 1.1

            Show
            jamesdumay James Dumay added a comment - Will be released in Blue Ocean 1.1
            Hide
            bkorren Barak Korren added a comment -

            I don't think this is working properly now.

            We have complex jobs that use displayName heavily. We're explicitly using displayName to be able to quickly look at the list of builds and know which one did what. While the main build screen does show the name in the top of the page, the activity screen does not show it anywhere, not even on mouse hover as mentioned in previous comment on this issue. It just shows the build number.

            Here are example jobs that use displayName heavily (These should be publicly viewable):

            http://jenkins.ovirt.org/job/ovirt-master_change-queue/

            http://jenkins.ovirt.org/job/ovirt-master_change-queue-tester/

             

            It is pretty important for us to see the right display names, otherwise we can't use BlueOcean to monitor these jobs.

            Show
            bkorren Barak Korren added a comment - I don't think this is working properly now. We have complex jobs that use displayName heavily. We're explicitly using displayName to be able to quickly look at the list of builds and know which one did what. While the main build screen does show the name in the top of the page, the activity screen does not show it anywhere, not even on mouse hover as mentioned in previous comment on this issue. It just shows the build number. Here are example jobs that use displayName heavily (These should be publicly viewable): http://jenkins.ovirt.org/job/ovirt-master_change-queue/ http://jenkins.ovirt.org/job/ovirt-master_change-queue-tester/   It is pretty important for us to see the right display names, otherwise we can't use BlueOcean to monitor these jobs.
            Hide
            jamesdumay James Dumay added a comment -

            Please open a new bug with a Jenkinsfile that can reproduce the error, rather than reopen this ticket.

            Show
            jamesdumay James Dumay added a comment - Please open a new bug with a Jenkinsfile that can reproduce the error, rather than reopen this ticket.
            Hide
            akrapfl Adam Krapfl added a comment -

            James Dumay Barak Korren I see this as still broken as well.  Or rather, partially working:

            the following groovy on blue ocean: 1.2.0 · Core 2.60.3 · 4d42c87 · (no branch) 

            node {
             stage('start') {
             currentBuild.displayName = "foo.$BUILD_NUMBER"
             currentBuild.description = "foo.$BUILD_NUMBER - desc"
             echo 'Hello World'
             }
            }

            produces the attached ui in classic and blue ocean views.

             

             

            Show
            akrapfl Adam Krapfl added a comment - James Dumay Barak Korren I see this as still broken as well.  Or rather, partially working: the following groovy on blue ocean:  1.2.0 · Core 2.60.3 · 4d42c87 · (no branch)   node { stage('start') { currentBuild.displayName = "foo.$BUILD_NUMBER" currentBuild.description = "foo.$BUILD_NUMBER - desc" echo 'Hello World' } } produces the attached ui in classic and blue ocean views.    
            Hide
            akrapfl Adam Krapfl added a comment -

            James Dumay Barak Korren

            Added JENKINS-46657 to track the defect with this feature.

            Show
            akrapfl Adam Krapfl added a comment - James Dumay Barak Korren Added  JENKINS-46657  to track the defect with this feature.

              People

              • Assignee:
                jamesdumay James Dumay
                Reporter:
                roidelapluie Julien Pivotto
              • Votes:
                9 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: