Adding a link next to Activity in Blue Ocean

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding a link next to Activity in Blue Ocean

Eric Bartusch

Hi,

 

I’m developing a plugin that adds a page providing additional information about pipeline runs.  I’ve gotten everything working well enough so far and the page is accessible, but I’d like to create a link to the page that users can click on.  Since it’s related to pipelines and each pipeline has their own version of the page, it’d make sense to put it right next to the Activity/Branches/Pull Requests links.  Is there an easy way for me to achieve that completely within the plugin I’m writing?  I tried looking at how the existing links work, but it all seems to be contained in the blueocean-dashboard plugin with no way to change it outside of that.

 

I watched the Extending Blue Ocean talk at Jenkins World 2017, and it sounds like using extension points is the way to go.  I have a basic understanding of extension points, but I can’t find one that is appropriate for what I’m trying to do.  Any tips?


 

Thanks,

Eric

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Untitled.png (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Adding a link next to Activity in Blue Ocean

Keith Zantow-2
There's a longstanding PR for doing this. I'm sorry I don't have time at the moment to wrap it up, if you wanted to take it over that might expedite this?


Cheers,
-Keith

On Wed, May 16, 2018 at 1:11 PM, Eric Bartusch <[hidden email]> wrote:

Hi,

 

I’m developing a plugin that adds a page providing additional information about pipeline runs.  I’ve gotten everything working well enough so far and the page is accessible, but I’d like to create a link to the page that users can click on.  Since it’s related to pipelines and each pipeline has their own version of the page, it’d make sense to put it right next to the Activity/Branches/Pull Requests links.  Is there an easy way for me to achieve that completely within the plugin I’m writing?  I tried looking at how the existing links work, but it all seems to be contained in the blueocean-dashboard plugin with no way to change it outside of that.

 

I watched the Extending Blue Ocean talk at Jenkins World 2017, and it sounds like using extension points is the way to go.  I have a basic understanding of extension points, but I can’t find one that is appropriate for what I’m trying to do.  Any tips?


 

Thanks,

Eric

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Keith Zantow
Senior Software Engineer
CloudBees, Inc.

CloudBees-Logo.png


E: [hidden email]

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAJTHQaHag4%3DFgKOOV%3D7%3DdZmGdWdT3%2Bf_gGP%3D9AsBB8GfPuXqwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Adding a link next to Activity in Blue Ocean

Eric Bartusch
Thanks for the quick reply Keith.  I'll take a look, but I doubt I have the expertise to get it done the right way.  Regardless, at least I have a PR I can keep an eye on!

-Eric 

On Wednesday, May 16, 2018 at 12:16:59 PM UTC-5, Keith Zantow wrote:
There's a longstanding PR for doing this. I'm sorry I don't have time at the moment to wrap it up, if you wanted to take it over that might expedite this?

<a href="https://github.com/jenkinsci/blueocean-plugin/pull/1541" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin%2Fpull%2F1541\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHTJSFAfXUSZJR0S_UYOi09jz6h8Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin%2Fpull%2F1541\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHTJSFAfXUSZJR0S_UYOi09jz6h8Q&#39;;return true;">https://github.com/jenkinsci/blueocean-plugin/pull/1541

Cheers,
-Keith

On Wed, May 16, 2018 at 1:11 PM, Eric Bartusch <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="H0f1_Q4vCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">ericba...@...> wrote:

Hi,

 

I’m developing a plugin that adds a page providing additional information about pipeline runs.  I’ve gotten everything working well enough so far and the page is accessible, but I’d like to create a link to the page that users can click on.  Since it’s related to pipelines and each pipeline has their own version of the page, it’d make sense to put it right next to the Activity/Branches/Pull Requests links.  Is there an easy way for me to achieve that completely within the plugin I’m writing?  I tried looking at how the existing links work, but it all seems to be contained in the blueocean-dashboard plugin with no way to change it outside of that.

 

I watched the Extending Blue Ocean talk at Jenkins World 2017, and it sounds like using extension points is the way to go.  I have a basic understanding of extension points, but I can’t find one that is appropriate for what I’m trying to do.  Any tips?


 

Thanks,

Eric

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="H0f1_Q4vCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--

Keith Zantow
Senior Software Engineer
CloudBees, Inc.

CloudBees-Logo.png


E: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="H0f1_Q4vCQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">kza...@...

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/738d0df5-7459-4005-98f3-85e8b2c7e31b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Adding a link next to Activity in Blue Ocean

Thorsten Scherler
You are trying to extend the tabs that currently do not have extensionpoints. However you could use https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-dashboard/src/main/js/components/PipelinePage.jsx#L111 and simply provide the component for that.

then in your jenkins-js-extension.yaml you implement jenkins.pipeline.detail.header.action and point to your component.
    
If you are bound to the location then you would need to create a new Extension-point in the tabs and then implement your component.

HTH

salu2

On Wednesday, May 16, 2018 at 7:28:01 PM UTC+2, Eric Bartusch wrote:
Thanks for the quick reply Keith.  I'll take a look, but I doubt I have the expertise to get it done the right way.  Regardless, at least I have a PR I can keep an eye on!

-Eric 

On Wednesday, May 16, 2018 at 12:16:59 PM UTC-5, Keith Zantow wrote:
There's a longstanding PR for doing this. I'm sorry I don't have time at the moment to wrap it up, if you wanted to take it over that might expedite this?

<a href="https://github.com/jenkinsci/blueocean-plugin/pull/1541" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin%2Fpull%2F1541\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHTJSFAfXUSZJR0S_UYOi09jz6h8Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin%2Fpull%2F1541\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHTJSFAfXUSZJR0S_UYOi09jz6h8Q&#39;;return true;">https://github.com/jenkinsci/blueocean-plugin/pull/1541

Cheers,
-Keith

On Wed, May 16, 2018 at 1:11 PM, Eric Bartusch <[hidden email]> wrote:

Hi,

 

I’m developing a plugin that adds a page providing additional information about pipeline runs.  I’ve gotten everything working well enough so far and the page is accessible, but I’d like to create a link to the page that users can click on.  Since it’s related to pipelines and each pipeline has their own version of the page, it’d make sense to put it right next to the Activity/Branches/Pull Requests links.  Is there an easy way for me to achieve that completely within the plugin I’m writing?  I tried looking at how the existing links work, but it all seems to be contained in the blueocean-dashboard plugin with no way to change it outside of that.

 

I watched the Extending Blue Ocean talk at Jenkins World 2017, and it sounds like using extension points is the way to go.  I have a basic understanding of extension points, but I can’t find one that is appropriate for what I’m trying to do.  Any tips?


 

Thanks,

Eric

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--

Keith Zantow
Senior Software Engineer
CloudBees, Inc.

CloudBees-Logo.png


E: [hidden email]

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/723965bd-0294-4a6d-85f6-8b92810304a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Adding a link next to Activity in Blue Ocean

Keith Zantow-2
Yes, you could definitely do that for a top-level page but be aware you wouldn't have a pipeline run context, which I gathered that you need for the functionality you're looking to provide.

-Keith

On Thu, May 17, 2018 at 12:08 PM, Thorsten Scherler <[hidden email]> wrote:
You are trying to extend the tabs that currently do not have extensionpoints. However you could use https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-dashboard/src/main/js/components/PipelinePage.jsx#L111 and simply provide the component for that.

then in your jenkins-js-extension.yaml you implement jenkins.pipeline.detail.header.action and point to your component.
    
If you are bound to the location then you would need to create a new Extension-point in the tabs and then implement your component.

HTH

salu2

On Wednesday, May 16, 2018 at 7:28:01 PM UTC+2, Eric Bartusch wrote:
Thanks for the quick reply Keith.  I'll take a look, but I doubt I have the expertise to get it done the right way.  Regardless, at least I have a PR I can keep an eye on!

-Eric 

On Wednesday, May 16, 2018 at 12:16:59 PM UTC-5, Keith Zantow wrote:
There's a longstanding PR for doing this. I'm sorry I don't have time at the moment to wrap it up, if you wanted to take it over that might expedite this?


Cheers,
-Keith

On Wed, May 16, 2018 at 1:11 PM, Eric Bartusch <[hidden email]> wrote:

Hi,

 

I’m developing a plugin that adds a page providing additional information about pipeline runs.  I’ve gotten everything working well enough so far and the page is accessible, but I’d like to create a link to the page that users can click on.  Since it’s related to pipelines and each pipeline has their own version of the page, it’d make sense to put it right next to the Activity/Branches/Pull Requests links.  Is there an easy way for me to achieve that completely within the plugin I’m writing?  I tried looking at how the existing links work, but it all seems to be contained in the blueocean-dashboard plugin with no way to change it outside of that.

 

I watched the Extending Blue Ocean talk at Jenkins World 2017, and it sounds like using extension points is the way to go.  I have a basic understanding of extension points, but I can’t find one that is appropriate for what I’m trying to do.  Any tips?


 

Thanks,

Eric

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]om.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Keith Zantow
Senior Software Engineer
CloudBees, Inc.

CloudBees-Logo.png


E: [hidden email]

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/723965bd-0294-4a6d-85f6-8b92810304a7%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Keith Zantow
Senior Software Engineer
CloudBees, Inc.

CloudBees-Logo.png


E: [hidden email]

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAJTHQaGdYnrQRo94X0cU%3DWahvbD6pH%2BF1CAFsGTjgMtnPwrKig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Adding a link next to Activity in Blue Ocean

Eric Bartusch
In reply to this post by Thorsten Scherler
Hey Thorsten,

Thanks for the tip, it's a really nice workaround for the time being!  I'm not beholden to the right side, but would prefer it.  This gets me most of the way there.

-Eric

On Thursday, May 17, 2018 at 11:08:04 AM UTC-5, Thorsten Scherler wrote:
You are trying to extend the tabs that currently do not have extensionpoints. However you could use <a href="https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-dashboard/src/main/js/components/PipelinePage.jsx#L111" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin%2Fblob%2Fmaster%2Fblueocean-dashboard%2Fsrc%2Fmain%2Fjs%2Fcomponents%2FPipelinePage.jsx%23L111\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGAhXoIkte0mrgQLK85K3UvXXHgcQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin%2Fblob%2Fmaster%2Fblueocean-dashboard%2Fsrc%2Fmain%2Fjs%2Fcomponents%2FPipelinePage.jsx%23L111\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGAhXoIkte0mrgQLK85K3UvXXHgcQ&#39;;return true;">https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-dashboard/src/main/js/components/PipelinePage.jsx#L111 and simply provide the component for that.

then in your jenkins-js-extension.yaml you implement jenkins.pipeline.detail.header.action and point to your component.
    
If you are bound to the location then you would need to create a new Extension-point in the tabs and then implement your component.

HTH

salu2

On Wednesday, May 16, 2018 at 7:28:01 PM UTC+2, Eric Bartusch wrote:
Thanks for the quick reply Keith.  I'll take a look, but I doubt I have the expertise to get it done the right way.  Regardless, at least I have a PR I can keep an eye on!

-Eric 

On Wednesday, May 16, 2018 at 12:16:59 PM UTC-5, Keith Zantow wrote:
There's a longstanding PR for doing this. I'm sorry I don't have time at the moment to wrap it up, if you wanted to take it over that might expedite this?

<a href="https://github.com/jenkinsci/blueocean-plugin/pull/1541" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin%2Fpull%2F1541\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHTJSFAfXUSZJR0S_UYOi09jz6h8Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin%2Fpull%2F1541\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHTJSFAfXUSZJR0S_UYOi09jz6h8Q&#39;;return true;">https://github.com/jenkinsci/blueocean-plugin/pull/1541

Cheers,
-Keith

On Wed, May 16, 2018 at 1:11 PM, Eric Bartusch <[hidden email]> wrote:

Hi,

 

I’m developing a plugin that adds a page providing additional information about pipeline runs.  I’ve gotten everything working well enough so far and the page is accessible, but I’d like to create a link to the page that users can click on.  Since it’s related to pipelines and each pipeline has their own version of the page, it’d make sense to put it right next to the Activity/Branches/Pull Requests links.  Is there an easy way for me to achieve that completely within the plugin I’m writing?  I tried looking at how the existing links work, but it all seems to be contained in the blueocean-dashboard plugin with no way to change it outside of that.

 

I watched the Extending Blue Ocean talk at Jenkins World 2017, and it sounds like using extension points is the way to go.  I have a basic understanding of extension points, but I can’t find one that is appropriate for what I’m trying to do.  Any tips?


 

Thanks,

Eric

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--

Keith Zantow
Senior Software Engineer
CloudBees, Inc.

CloudBees-Logo.png


E: [hidden email]

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/8d18d4af-5a80-437d-83a1-8b2c95e65625%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Adding a link next to Activity in Blue Ocean

Eric Bartusch
In reply to this post by Keith Zantow-2
Keith,

For the link itself, I only need the organization/pipeline name.  All the run information I process I get through the rest API.

-Eric

On Thursday, May 17, 2018 at 1:16:05 PM UTC-5, Keith Zantow wrote:
Yes, you could definitely do that for a top-level page but be aware you wouldn't have a pipeline run context, which I gathered that you need for the functionality you're looking to provide.

-Keith

On Thu, May 17, 2018 at 12:08 PM, Thorsten Scherler <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="aofIB92ACQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">tsch...@...> wrote:
You are trying to extend the tabs that currently do not have extensionpoints. However you could use <a href="https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-dashboard/src/main/js/components/PipelinePage.jsx#L111" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin%2Fblob%2Fmaster%2Fblueocean-dashboard%2Fsrc%2Fmain%2Fjs%2Fcomponents%2FPipelinePage.jsx%23L111\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGAhXoIkte0mrgQLK85K3UvXXHgcQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin%2Fblob%2Fmaster%2Fblueocean-dashboard%2Fsrc%2Fmain%2Fjs%2Fcomponents%2FPipelinePage.jsx%23L111\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGAhXoIkte0mrgQLK85K3UvXXHgcQ&#39;;return true;">https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-dashboard/src/main/js/components/PipelinePage.jsx#L111 and simply provide the component for that.

then in your jenkins-js-extension.yaml you implement jenkins.pipeline.detail.header.action and point to your component.
    
If you are bound to the location then you would need to create a new Extension-point in the tabs and then implement your component.

HTH

salu2

On Wednesday, May 16, 2018 at 7:28:01 PM UTC+2, Eric Bartusch wrote:
Thanks for the quick reply Keith.  I'll take a look, but I doubt I have the expertise to get it done the right way.  Regardless, at least I have a PR I can keep an eye on!

-Eric 

On Wednesday, May 16, 2018 at 12:16:59 PM UTC-5, Keith Zantow wrote:
There's a longstanding PR for doing this. I'm sorry I don't have time at the moment to wrap it up, if you wanted to take it over that might expedite this?

<a href="https://github.com/jenkinsci/blueocean-plugin/pull/1541" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin%2Fpull%2F1541\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHTJSFAfXUSZJR0S_UYOi09jz6h8Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin%2Fpull%2F1541\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHTJSFAfXUSZJR0S_UYOi09jz6h8Q&#39;;return true;">https://github.com/jenkinsci/blueocean-plugin/pull/1541

Cheers,
-Keith

On Wed, May 16, 2018 at 1:11 PM, Eric Bartusch <[hidden email]> wrote:

Hi,

 

I’m developing a plugin that adds a page providing additional information about pipeline runs.  I’ve gotten everything working well enough so far and the page is accessible, but I’d like to create a link to the page that users can click on.  Since it’s related to pipelines and each pipeline has their own version of the page, it’d make sense to put it right next to the Activity/Branches/Pull Requests links.  Is there an easy way for me to achieve that completely within the plugin I’m writing?  I tried looking at how the existing links work, but it all seems to be contained in the blueocean-dashboard plugin with no way to change it outside of that.

 

I watched the Extending Blue Ocean talk at Jenkins World 2017, and it sounds like using extension points is the way to go.  I have a basic understanding of extension points, but I can’t find one that is appropriate for what I’m trying to do.  Any tips?


 

Thanks,

Eric

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/4e8fff3d-235e-45fc-82a6-32e2ab10b7d7%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--

Keith Zantow
Senior Software Engineer
CloudBees, Inc.

CloudBees-Logo.png


E: [hidden email]

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="aofIB92ACQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/723965bd-0294-4a6d-85f6-8b92810304a7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/723965bd-0294-4a6d-85f6-8b92810304a7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/723965bd-0294-4a6d-85f6-8b92810304a7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/723965bd-0294-4a6d-85f6-8b92810304a7%40googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--

Keith Zantow
Senior Software Engineer
CloudBees, Inc.

CloudBees-Logo.png


E: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="aofIB92ACQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">kza...@...

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/18fbd86c-9e17-42ca-94ef-5930fff506bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.