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

[Blue Ocean] Remove hard coded link to new job from blue ocean header

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • blueocean-plugin
    • osx 10.10.5
      .pkg from Jenkins website : Jenkins ver. 2.7.1

      Summary: const newJobUrl = `${baseUrl}/view/All/newJob` in PIpelines.jsx is hard coded and doesn't take into account localised URIs in jenkins.
      This should not be hard coded. This link should actually be removed from blue ocean header in longer term as it gets its own creation screen and doesn't have to delegate to classic.


      Fresh install of jenkins on my osx laptop.
      Installing plugin via experimental repository, everyting's ok.

      Opened an issue https://groups.google.com/forum/#!topic/jenkinsci-dev/C7Ze59o_XOo and guys redirected me to you.

          [JENKINS-36610] [Blue Ocean] Remove hard coded link to new job from blue ocean header

          Michael Neale added a comment -

          Can you click on "New Item" when you are on your Jenkins? What is the url, and what do you see?

          Thanks for this. Have tried to reproduce this a few ways and unable to. Could you possibly record a screen recording too?

          Michael Neale added a comment - Can you click on "New Item" when you are on your Jenkins? What is the url, and what do you see? Thanks for this. Have tried to reproduce this a few ways and unable to. Could you possibly record a screen recording too?

          Maelig Gohin added a comment -

          http://localhost:7070/view/Tous/newJob --> looks like an i18n problem

          Maelig Gohin added a comment - http://localhost:7070/view/Tous/newJob --> looks like an i18n problem

          James Dumay added a comment -

          mgohin OK thanks - we don't have a good way of solving that problem right now but we are visiting the way we create jobs soon and will consider it then.

          James Dumay added a comment - mgohin OK thanks - we don't have a good way of solving that problem right now but we are visiting the way we create jobs soon and will consider it then.

          Maelig Gohin added a comment - - edited

          Ok.

          I recorded a screen with urls, check the GIF

          Maelig Gohin added a comment - - edited Ok. I recorded a screen with urls, check the GIF

          Michael Neale added a comment -

          Thanks mgohin we want to get rid of this link in hard coded form anyway, so this should naturally go away. Will keep it open for now.

          Michael Neale added a comment - Thanks mgohin we want to get rid of this link in hard coded form anyway, so this should naturally go away. Will keep it open for now.

          James Dumay added a comment -

          There's a whole epic planned (JENKINS-36588) to remove this and replace it with something nicer!

          James Dumay added a comment - There's a whole epic planned ( JENKINS-36588 ) to remove this and replace it with something nicer!

            Unassigned Unassigned
            mgohin Maelig Gohin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: