• Blue Ocean 1.2-beta3, Blue Ocean 1.2-beta4, Blue Ocean 1.2, Blue Ocean 1.3, Blue Ocean 1.4 - beta 1, Blue Ocean 1.4 - beta 3, Blue Ocean 1.4 - beta 2

      There are situations where multiple Blue Ocean links can be displayed.

      There is no clear path to reproduce but the cause seems to be the use of getActions which is deprecated and does not return the transient actions + the use of replace action and returning the replacement action at the same time:

      https://github.com/jenkinsci/blueocean-plugin/blob/da4a4d5eb3d88be1c844cf4665d3c6b8859cb48b/blueocean-rest-impl/src/main/java/io/jenkins/blueocean/service/embedded/TryBlueOceanMenu.java#L52-L56

      https://github.com/jenkinsci/blueocean-plugin/blob/da4a4d5eb3d88be1c844cf4665d3c6b8859cb48b/blueocean-rest-impl/src/main/java/io/jenkins/blueocean/service/embedded/TryBlueOceanMenu.java#L63

          [JENKINS-45476] Multiple Blue Ocean links are displayed

          James Dumay added a comment -

          alobato so rtyler reported a similar one as JENKINS-45269. Ill close JENKINS-45269 as a duplicate of this ticket.

          James Dumay added a comment - alobato so rtyler reported a similar one as JENKINS-45269 . Ill close JENKINS-45269 as a duplicate of this ticket.

          James Dumay added a comment -

          alobato do you need help with this one or should it be assigned to someone else?

          James Dumay added a comment - alobato do you need help with this one or should it be assigned to someone else?

          Alvaro Lobato added a comment -

          jamesdumay yes, if someone else can do it, it would be great. I couldn't find the time to work on this. Thanks

          Alvaro Lobato added a comment - jamesdumay yes, if someone else can do it, it would be great. I couldn't find the time to work on this. Thanks

          James Dumay added a comment -

          vivek I suspect JENKINS-45947 is very similar to this one

          James Dumay added a comment - vivek I suspect JENKINS-45947 is very similar to this one

          Kristopher Kurasz added a comment - - edited

          +1, I'm also seeing this on Pipeline jobs with the following:

          OS: Windows (core 2012)
          Jenkins: 2.73.1
          Blue Ocean: 1.2.4
          

           It seems specific to the job instance.  For me, build 33 shows "open blue ocean/mercurial build data/artifactory build info" duplicated once, separated by Replay and Pipeline steps, for a total of 2 blue oceans.  Build 34 shows "Open blue ocean (*3) / Mercurial Build Data / artifactory build info / Artifactory Release Promotion" duplicated once, separated by Replay and Pipeline steps, for a total of 6 blue oceans.

          Kristopher Kurasz added a comment - - edited +1, I'm also seeing this on Pipeline jobs with the following: OS: Windows (core 2012) Jenkins: 2.73.1 Blue Ocean: 1.2.4  It seems specific to the job instance.  For me, build 33 shows "open blue ocean/mercurial build data/artifactory build info" duplicated once, separated by Replay and Pipeline steps, for a total of 2 blue oceans.  Build 34 shows "Open blue ocean (*3) / Mercurial Build Data / artifactory build info / Artifactory Release Promotion" duplicated once, separated by Replay and Pipeline steps, for a total of 6 blue oceans.

          James Dumay added a comment -

          kkurasz we are looking into this ticket soon

          James Dumay added a comment - kkurasz we are looking into this ticket soon

          Karl Shultz added a comment -

          Testing Notes:

          • Once implemented, this seems like something which should be covered by unit tests.
          • A Jenkins ATH test could probably be created (or even an existing one modified) to check for the presence of redundant links on the left hand nav.

          Karl Shultz added a comment - Testing Notes: Once implemented, this seems like something which should be covered by unit tests. A Jenkins ATH test could probably be created (or even an existing one modified) to check for the presence of redundant links on the left hand nav.

          Ivan Meredith added a comment -

          kshultz PR is https://github.com/jenkinsci/blueocean-plugin/pull/1560. I donlt really know how to replicate this bug although im fairly sure I have fixed it.

          Ivan Meredith added a comment - kshultz PR is https://github.com/jenkinsci/blueocean-plugin/pull/1560 . I donlt really know how to replicate this bug although im fairly sure I have fixed it.

            imeredith Ivan Meredith
            alobato Alvaro Lobato
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: