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

blue ocean currentBuild.displayName should show in RUN column in place of number

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • blueocean-plugin
    • 1.2.0
      · Core 2.60.3
      · 4d42c87
      · (no branch)
      · 22nd August 2017 11:28 PM
    • Blue Ocean 1.3

      tldr: Blue ocean should use the displayName if one is there, instead of build number (like the classic screen shot). The URIs are unchanged, just what is displayed in the column. 

       

      ------ original: ------

       

      -JENKINS-39850- claims that currentBuild.displayName is honored in blue ocean as of now, but it is not consistent.  The following script:

       

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

      Produces the attached screenshots on our system.

       

      Expected Behavior:

      The activity screen should show displayName in the RUN column.  JENKINS-39850 shows screenshots that show that to be the case.

          [JENKINS-46657] blue ocean currentBuild.displayName should show in RUN column in place of number

          Adam Krapfl created issue -

          Michael Neale added a comment -

          akrapfl can you clarify what you expect - ie I think it is using the description over displayName when there is one. Is this not expected when there are both? Need some clarity of expected behavior if possible. 

          Michael Neale added a comment - akrapfl can you clarify what you expect - ie I think it is using the description over displayName when there is one. Is this not expected when there are both? Need some clarity of expected behavior if possible. 

          Adam Krapfl added a comment -

          Expected behavior is that the activity screen should show displayName in the RUN column.  JENKINS-39850 shows screenshots that show that to be the case.

          I will update the issue description as well.

          Adam Krapfl added a comment - Expected behavior is that the  activity screen should show  displayName in the  RUN column.   JENKINS-39850 shows screenshots that show that to be the case. I will update the issue description as well.
          Adam Krapfl made changes -
          Description Original: JENKINS-39850 claims that *currentBuild.displayName* is honored in blue ocean as of now, but it is not consistent.  The following script:

           
          {code:java}
          node {
            stage('start') {
              currentBuild.displayName = "foo.$BUILD_NUMBER"
              currentBuild.description = "foo.$BUILD_NUMBER - desc"
              echo 'Hello World'
            }
          }
          {code}
          Produces the attached screenshots on our system.
          New: -JENKINS-39850- claims that *currentBuild.displayName* is honored in blue ocean as of now, but it is not consistent.  The following script:

           
          {code:java}
          node {
            stage('start') {
              currentBuild.displayName = "foo.$BUILD_NUMBER"
              currentBuild.description = "foo.$BUILD_NUMBER - desc"
              echo 'Hello World'
            }
          }
          {code}
          Produces the attached screenshots on our system.

           

          *Expected Behavior:*

          The *activity* screen should show *displayName* in the *RUN* column.  JENKINS-39850 shows screenshots that show that to be the case.

          Michael Neale added a comment - - edited

          akrapfl and the description (longer form) should be used in the "detail screen" if I understand correctly (and thanks for updating). 

           

          edit: right - it uses the message column for that... ok starting to make sense 

          Michael Neale added a comment - - edited akrapfl and the description (longer form) should be used in the "detail screen" if I understand correctly (and thanks for updating).    edit: right - it uses the message column for that... ok starting to make sense 
          Michael Neale made changes -
          Summary Original: blue ocean currentBuild.displayName feature is incomplete New: blue ocean currentBuild.displayName should show in RUN column in place of number
          Michael Neale made changes -
          Epic Link New: JENKINS-35761 [ 171656 ]
          Michael Neale made changes -
          Description Original: -JENKINS-39850- claims that *currentBuild.displayName* is honored in blue ocean as of now, but it is not consistent.  The following script:

           
          {code:java}
          node {
            stage('start') {
              currentBuild.displayName = "foo.$BUILD_NUMBER"
              currentBuild.description = "foo.$BUILD_NUMBER - desc"
              echo 'Hello World'
            }
          }
          {code}
          Produces the attached screenshots on our system.

           

          *Expected Behavior:*

          The *activity* screen should show *displayName* in the *RUN* column.  JENKINS-39850 shows screenshots that show that to be the case.
          New: tldr: Blue ocean should use the displayName if one is there, instead of build number (like the classic screen shot). The URIs are unchanged, just what is displayed in the column. 

           

          ------ original: ------

           

          --JENKINS-39850-- claims that *currentBuild.displayName* is honored in blue ocean as of now, but it is not consistent.  The following script:

           
          {code:java}
          node {
            stage('start') {
              currentBuild.displayName = "foo.$BUILD_NUMBER"
              currentBuild.description = "foo.$BUILD_NUMBER - desc"
              echo 'Hello World'
            }
          }
          {code}
          Produces the attached screenshots on our system.

           

          *Expected Behavior:*

          The *activity* screen should show *displayName* in the *RUN* column.  -JENKINS-39850- shows screenshots that show that to be the case.
          Michael Neale made changes -
          Sprint New: Blue Ocean 1.3 - beta 1 [ 386 ]
          Michael Neale made changes -
          Assignee New: Nicolae Pascu [ nicu ]

            nicu Nicolae Pascu
            akrapfl Adam Krapfl
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: