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

"New Pipeline"does not work if context root is not /jenkins

    XMLWordPrintable

Details

    Description

      I suspect the plugin has mostly been tested using hpi:run, so currently when deployed somewhere, the main link of the /blue page will lead to a 404.

      I think the problem is that /jenkins is prefixed here: https://github.com/batmat/blueocean-plugin/blob/f507cd9ccd98c594719dc4dd4ae32aa94ff3fa51/blueocean-dashboard/src/main/js/components/Pipelines.jsx#L41 when it should use Jenkins.getRootUrl() for the beginning of the PATH.

      E.g. the issue is visible when running the demo Docker image: docker run -p 8080:8080 jenkinsci/blueocean

      I've set the priority to Important since this is the main link of that page that's not working.

      Attachments

        Activity

          jamesdumay James Dumay added a comment -

          Thanks for reporting. This isn't the final creation experience we had been thinking about but michaelneale and I should have one soon to show on the user list.

          jamesdumay James Dumay added a comment - Thanks for reporting. This isn't the final creation experience we had been thinking about but michaelneale and I should have one soon to show on the user list.
          michaelneale Michael Neale added a comment -

          Perhaps that button should not have been there...

          tfennelly any chance of a quick fix for this?

          michaelneale Michael Neale added a comment - Perhaps that button should not have been there... tfennelly any chance of a quick fix for this?
          sophistifunk Josh McDonald added a comment - https://github.com/jenkinsci/blueocean-plugin/pull/218
          sophistifunk Josh McDonald added a comment -

          Fix is merged, but I won't close it because I can't confirm it in-container locally

          sophistifunk Josh McDonald added a comment - Fix is merged, but I won't close it because I can't confirm it in-container locally

          People

            sophistifunk Josh McDonald
            batmat Baptiste Mathus
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: