jenkins-control-plugin icon indicating copy to clipboard operation
jenkins-control-plugin copied to clipboard

Usage of DisplayURLProvider (like Blue Ocean, Pipeline Graph View Plugin)

Open Kisty opened this issue 3 years ago • 9 comments

Blue Ocean is part of Jenkins and a modern web front-end which removes the clutter. It would be nice to have an option to forward to the respective Blue Ocean page (instead of the standard one).

Could have alternatives for:

  • Job logs
  • Projects
  • Multibranch pipeline branches
  • etc.

E.g. https://www.jenkins.io/doc/book/blueocean/

Kisty avatar Apr 29 '21 14:04 Kisty

Sound great will have a look at this. But not for Next release I guess

MCMicS avatar Apr 29 '21 14:04 MCMicS

Is it needed to configure the behaviour? I would suggest to open the Blue Ocen View if Blue Ocean is Available. The API delivers the correct URLs as field displayURL for different actions. I try to find the value and use the current behaviour as fallback if no Url is found

see Json: grafik

@Kisty What do you think about this?

MCMicS avatar Jul 19 '21 17:07 MCMicS

Thanks, man. That makes complete sense.

Not sure about configuring or if Blue Ocean is installed by default. Did you have to query for blue ocean or are you querying Jenkins server and it's returning blue ocean links?

On Mon, 19 Jul 2021, 18:57 MCMicS, @.***> wrote:

Is it needed to configure the behaviour? I would suggest to open the Blue Ocen View if Blue Ocean is Available. The API delivers the correct URLs as field displayURL for different actions. I try to find the value and use the current behaviour as fallback if no Url is found

see Json: [image: grafik] https://user-images.githubusercontent.com/4604206/126205128-e1c5d4d1-193c-47db-99c0-26ddf08f048c.png

@Kisty https://github.com/Kisty What do you think about this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MCMicS/jenkins-control-plugin/issues/278#issuecomment-882744941, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYX52DUN7ON2XTYWBVVHFTTYRRRNANCNFSM43Z7NW3Q .

Kisty avatar Jul 20 '21 07:07 Kisty

It returns the displayUrl with normal api all

You can try with

JenkinsUrlViewOrJob/api/json Sample: yourJenkins/job/ExtensibleChoiceParameter/api/json?tree=actions[displayUrl,testsUrl,changesUrl],lastBuild[actions[displayUrl,testsUrl,changesUrl]]

Then you can find the urls

I have to extend our requested fields but this is a simple step.

And use the configured Url seems to the best way.

MCMicS avatar Jul 20 '21 08:07 MCMicS

@MCMicS Blue Ocean is abandoned at this point.

lppedd avatar May 05 '23 17:05 lppedd

Hi @lppedd what do you mean with this comment? I've not added it right now. You can vote for it if you like the feature

MCMicS avatar May 05 '23 18:05 MCMicS

@MCMicS I've started using this plugin and I was going through all the issues just to see what's the state. Blue Ocean is a dead project (CloudBees words) so keeping this open may not make sense.

lppedd avatar May 05 '23 18:05 lppedd

Ah ok thanks for info i check it and then I can close this

Status of Blue Ocean: https://cd.foundation/blog/2021/09/02/bringing-blue-ocean-into-the-future-of-jenkins/ Status 2: https://github.com/jenkinsci/blueocean-plugin#blue-ocean-status

MCMicS avatar May 05 '23 18:05 MCMicS

change to support configured DisplayURLProvider. This could be Blue Ocean, Pipeline Graph View Plugin or other plugins

MCMicS avatar Oct 31 '23 19:10 MCMicS