Details

    • Similar Issues:
    • Epic Link:
    • Sprint:
      Blue Ocean 1.4 - beta 1, Blue Ocean 1.4 - beta 3, Blue Ocean 1.4 - beta 2, Blue Ocean - Candidates

      Description

      Code for this available on: https://github.com/jenkinsci/blueocean-plugin/pull/1658

       

      As suggested by Daniel Beck, it would be a good idea if blue ocean had a jenkins config setting that made the home page default to /blue (Tyler has done this with nginx rules before). 

      This is a necessary precursor to making blue the default out of box experience/entry point, allowing people to opt in. 

       

      In scope: 

      • When set, accessing the root will redirect to /blue
      • Existing links back to classic will keep working
      • Configured in settings, but also via system property/env variable (off by default initially)

      Testing: 

      • Should be tested via ATH in blue ocean
      • Need to ensure that links back to classic are not broken and "cool urls don't change"
      • Ensure only links to root redirect to /blue
      • Ensure that there are not any side effects (people using queries against root, for example) - investigation needed here.

        Attachments

          Issue Links

            Activity

            Hide
            tokio Quang Huynh added a comment -

            I want to set default home page to /blue with nginx like Tyler has done before. Can you give me the link about how Tyler do it ??

            Show
            tokio Quang Huynh added a comment - I want to set default home page to /blue with nginx like Tyler has done before. Can you give me the link about how Tyler do it ??
            Hide
            jhoblitt Joshua Hoblitt added a comment - - edited

            I don't know how R. Tyler Croy did it, but I've achieved something similar with nginx rules:

            if ( $http_referer ~ ^(?!https://example.org) ) {
             rewrite ^/$ https://example.org/blue/organizations/jenkins last;
            }

            By using the referer, it still allows the user to exit back to the classic UI.

            Show
            jhoblitt Joshua Hoblitt added a comment - - edited I don't know how  R. Tyler Croy did it, but I've achieved something similar with nginx rules: if ( $http_referer ~ ^(?!https: //example.org) ) { rewrite ^/$ https: //example.org/blue/organizations/jenkins last; } By using the referer , it still allows the user to exit back to the classic UI.
            Hide
            rtyler R. Tyler Croy added a comment -

            Joshua Hoblitt, FWIW, I was just rewriting off the root URL such as not to rely on the referrer header(s) which may or may not be present., roughly.

              location = / {
                return 301 $scheme://$server_name/blue/pipelines;
              }
            
            Show
            rtyler R. Tyler Croy added a comment - Joshua Hoblitt , FWIW, I was just rewriting off the root URL such as not to rely on the referrer header(s) which may or may not be present., roughly. location = / { return 301 $scheme: //$server_name/blue/pipelines; }
            Hide
            tokio Quang Huynh added a comment -

            Wow you guys are so good, you guys just made my day, thank you a lot for this experience.

            Show
            tokio Quang Huynh added a comment - Wow you guys are so good, you guys just made my day, thank you a lot for this experience.
            Hide
            ssbarnea Sorin Sbarnea added a comment -

            I am not sure if changing default is the best approach as it would break a LOT of things, but I have another related question:

            Am I the only one that find the extra URL increase of blue ocean bit... perverse? Who has a wide enough monitor to display the full url?

            URL with blue ocean means adding 28 extra characters at the start of the URL, almost a guarantee that the job name will not be visible in the browser addressbar, or that the better URL included in emails or webpages will create serious visualisation issues.

            How about trying the minimum: "/b" prefix instead of:
            /blue/organizations/jenkins
            Is this possible?

             

            Show
            ssbarnea Sorin Sbarnea added a comment - I am not sure if changing default is the best approach as it would break a LOT of things, but I have another related question: Am I the only one that find the extra URL increase of blue ocean bit... perverse? Who has a wide enough monitor to display the full url? URL with blue ocean means adding 28 extra characters at the start of the URL, almost a guarantee that the job name will not be visible in the browser addressbar, or that the better URL included in emails or webpages will create serious visualisation issues. How about trying the minimum: "/b" prefix instead of: /blue/organizations/jenkins Is this possible?  
            Hide
            michaelneale Michael Neale added a comment -

            Sorin Sbarnea yeah it would be an option (and existing links have to keep working). 

            Totally possible to change it to /b/ (the organizations thing - maybe that could be dropped too). 

            Show
            michaelneale Michael Neale added a comment - Sorin Sbarnea yeah it would be an option (and existing links have to keep working).  Totally possible to change it to /b/ (the organizations thing - maybe that could be dropped too). 
            Hide
            michaelneale Michael Neale added a comment -

            hey Jenn Briden this is an old one before your time, but wondering if this features in any future plans 

            Show
            michaelneale Michael Neale added a comment - hey Jenn Briden this is an old one before your time, but wondering if this features in any future plans 

              People

              • Assignee:
                Unassigned
                Reporter:
                michaelneale Michael Neale
              • Votes:
                24 Vote for this issue
                Watchers:
                25 Start watching this issue

                Dates

                • Created:
                  Updated: