jenkins-control-plugin
jenkins-control-plugin copied to clipboard
Usage of DisplayURLProvider (like Blue Ocean, Pipeline Graph View Plugin)
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/
Sound great will have a look at this. But not for Next release I guess
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:
@Kisty What do you think about this?
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 .
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 Blue Ocean is abandoned at this point.
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 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.
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
change to support configured DisplayURLProvider. This could be Blue Ocean, Pipeline Graph View Plugin or other plugins