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

Try BlueOcean button should keep currently open pipeline context

    • indian

      Currently the "try blue ocean" button links to the home page.

      In scope:

      • If a user is browsing a pipeline results screen etc - would be nice to take to the equivalent in blue ocean.
      • Try blue ocean should be a hyperlink so that right click "open in new tab" can work as EVERYONE tries to do that and sighs with sadness when they can't.
      • Rename button to "Open Blue Ocean"

          [JENKINS-39339] Try BlueOcean button should keep currently open pipeline context

          And could it be turned into a proper hyperlink (A Tag) please?

          I always try to middle click it to open BO in a new tab and that doesn't work.

          Ing. Christoph Obexer added a comment - And could it be turned into a proper hyperlink (A Tag) please? I always try to middle click it to open BO in a new tab and that doesn't work.

          Michael Neale added a comment -

          cobexer me too - good point. Changing description.
          FYI there is another ticket talking abotu the lack of right clickable links...

          Michael Neale added a comment - cobexer me too - good point. Changing description. FYI there is another ticket talking abotu the lack of right clickable links...

          Looks good, thank you for filing this michaelneale!

          Vincent Latombe added a comment - Looks good, thank you for filing this michaelneale !

          Tom FENNELLY added a comment -

          We can do this so long as there's a clean way of mapping the classic URL to the blueocean URL and I think there is.

          Tom FENNELLY added a comment - We can do this so long as there's a clean way of mapping the classic URL to the blueocean URL and I think there is.

          Tom FENNELLY added a comment - - edited

          Here's the original JIRA for this.... JENKINS-35832. I'm fairly sure the text in the description was copied from somewhere else because I seem to remember writing those exact words Ah ... because it was imported from other JIRA instance.

          Tom FENNELLY added a comment - - edited Here's the original JIRA for this.... JENKINS-35832 . I'm fairly sure the text in the description was copied from somewhere else because I seem to remember writing those exact words Ah ... because it was imported from other JIRA instance.

          James Dumay added a comment -

          tfennelly could you please pick this one up next? This was identified in the CD survey feedback and mentioned on a few email threads as a pain point for adoption.

          James Dumay added a comment - tfennelly could you please pick this one up next? This was identified in the CD survey feedback and mentioned on a few email threads as a pain point for adoption.

          Tom FENNELLY added a comment -

          Hey vivek or imeredith, do we have any magic on the Blue Ocean backend that accurately maps a blue ocean URL to it's equivalent classic Jenkins URL? I appreciate that this might not always be possible, but then we can just go to the Blue Ocean home page (as today).

          In the meantime, I will see if I can implement some @Extension points that get rendered on classic Jenkins pages (Job page and then Run page) and at least be able to redirect when on these pages (to the active pipeline or run details page in BO). This might be enough (as in the description above).

          Tom FENNELLY added a comment - Hey vivek or imeredith , do we have any magic on the Blue Ocean backend that accurately maps a blue ocean URL to it's equivalent classic Jenkins URL? I appreciate that this might not always be possible, but then we can just go to the Blue Ocean home page (as today). In the meantime, I will see if I can implement some @Extension points that get rendered on classic Jenkins pages (Job page and then Run page) and at least be able to redirect when on these pages (to the active pipeline or run details page in BO). This might be enough (as in the description above).

          Michael Neale added a comment -

          yeah not sure why that other one was closed (doesn't have a reason). Not deliberately related. Great minds think alike.

          Michael Neale added a comment - yeah not sure why that other one was closed (doesn't have a reason). Not deliberately related. Great minds think alike.

          Tom FENNELLY added a comment - PRs: https://github.com/jenkinsci/blueocean-plugin/pull/582 https://github.com/jenkinsci/blueocean-acceptance-test/pull/65

          Code changed in jenkins
          User: Tom Fennelly
          Path:
          src/main/js/custom_assertions/urlEndsWith.js
          src/main/js/custom_commands/addOpenBlueOceanLinkToFooter.js
          src/main/js/custom_commands/openBlueOcean.js
          src/main/js/globals.js
          src/main/js/page_objects/blueocean/bluePipelineActivity.js
          src/main/js/page_objects/classic_jenkins/classicRun.js
          src/main/nightwatch.json
          src/test/js/edgeCases/folder.js
          src/test/js/smoke.js
          http://jenkins-ci.org/commit/blueocean-acceptance-test/cdf8d0d9c1e5db06951f9de01bf7498a84c7d254
          Log:
          [FIX JENKINS-39339] contextual try Blue Ocean button (#65)

          • Add "Open Blue Ocean" link to footer

          need it because we removed the header

          • Added a few custom assertions
          • Added some pipeline activity page empty state assertions
          • Added openBlueOcean custom command
          • Add smoke test for the "Open Blue Ocean" button
          • remove urlMatches - unused
          • Fix url encoding in urlEndsWith
          • Make pipeline activity basic layout testing less fragile
          • A test for "Open Blue Ocean" on a freestyle down in a folder
          • Fix urlEndsWith assertion to handle weird characters in a more human way
          • A test for "Open Blue Ocean" on a multibranch run down in a folder

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Tom Fennelly Path: src/main/js/custom_assertions/urlEndsWith.js src/main/js/custom_commands/addOpenBlueOceanLinkToFooter.js src/main/js/custom_commands/openBlueOcean.js src/main/js/globals.js src/main/js/page_objects/blueocean/bluePipelineActivity.js src/main/js/page_objects/classic_jenkins/classicRun.js src/main/nightwatch.json src/test/js/edgeCases/folder.js src/test/js/smoke.js http://jenkins-ci.org/commit/blueocean-acceptance-test/cdf8d0d9c1e5db06951f9de01bf7498a84c7d254 Log: [FIX JENKINS-39339] contextual try Blue Ocean button (#65) Add "Open Blue Ocean" link to footer need it because we removed the header Added a few custom assertions Added some pipeline activity page empty state assertions Added openBlueOcean custom command Add smoke test for the "Open Blue Ocean" button remove urlMatches - unused Fix url encoding in urlEndsWith Make pipeline activity basic layout testing less fragile A test for "Open Blue Ocean" on a freestyle down in a folder Fix urlEndsWith assertion to handle weird characters in a more human way A test for "Open Blue Ocean" on a multibranch run down in a folder

            tfennelly Tom FENNELLY
            michaelneale Michael Neale
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: