Quantcast

Altering a plugin - Jenkins Stage view - where to look for in the code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Altering a plugin - Jenkins Stage view - where to look for in the code

Martin Holeček
Dear all,

please, which part of the pipeline stage view plugin's sources would be most suitable for an insertion of a filter?

What I need to accomplish - I do want to see historical builds that have a specific parameter equal a specific value for one specific job.
I do not want to filter jobs, like every answer on stackoverflow assumes, I want to see the nice stageview but filtered... and since there seems to not be such a functionality, I need to try to create one. Yea, like filtering the historical builds in the left column, but doing this for the stageview.

I was not able to locate such a point in the sources where a filter could be inserted.

If You would  think, that this solution is not wise, if maybe exporting the build history and doing select over csv file would serve better, tell me ;)

Thank You very much!
Martin

--
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/c4b9d1b1-feab-4a08-9a4f-1ffca2baae21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Altering a plugin - Jenkins Stage view - where to look for in the code

Samuel Van Oort
Dear Martin,
I am the Stage View maintainer -- there's not an extension point for this, but if you want to add one, you'd have to make a new API like this one:

https://github.com/jenkinsci/pipeline-stage-view-plugin/blob/master/rest-api/src/main/java/com/cloudbees/workflow/rest/endpoints/JobAPI.java#L72

and also create a version of this that adds filter conditions:

https://github.com/jenkinsci/pipeline-stage-view-plugin/blob/master/rest-api/src/main/java/com/cloudbees/workflow/rest/external/JobExt.java#L121

and then you'd need to surface this somewhere in the UI when making the initially HTTP requests (in the UI plugin) and change the API call it invokes (a variety of places).

Regards,
Sam

On Friday, March 17, 2017 at 2:40:58 AM UTC-4, Martin Holeček wrote:
Dear all,

please, which part of the pipeline stage view plugin's sources would be most suitable for an insertion of a filter?

What I need to accomplish - I do want to see historical builds that have a specific parameter equal a specific value for one specific job.
I do not want to filter jobs, like every answer on stackoverflow assumes, I want to see the nice stageview but filtered... and since there seems to not be such a functionality, I need to try to create one. Yea, like filtering the historical builds in the left column, but doing this for the stageview.

I was not able to locate such a point in the sources where a filter could be inserted.

If You would  think, that this solution is not wise, if maybe exporting the build history and doing select over csv file would serve better, tell me ;)

Thank You very much!
Martin

--
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/f64ad6d5-5504-4f1a-a6b1-7c0d9926e2ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Altering a plugin - Jenkins Stage view - where to look for in the code

Martin Holeček
Thank You very much!

Dne pátek 17. března 2017 19:06:25 UTC+1 Samuel Van Oort napsal(a):
Dear Martin,
I am the Stage View maintainer -- there's not an extension point for this, but if you want to add one, you'd have to make a new API like this one:

<a href="https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fjenkinsci%2Fpipeline-stage-view-plugin%2Fblob%2Fmaster%2Frest-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fcloudbees%2Fworkflow%2Frest%2Fendpoints%2FJobAPI.java%23L72&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNFIQI5Yz43qEJhHfk4uSdvqB9Dsrg" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fpipeline-stage-view-plugin%2Fblob%2Fmaster%2Frest-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fcloudbees%2Fworkflow%2Frest%2Fendpoints%2FJobAPI.java%23L72\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFIQI5Yz43qEJhHfk4uSdvqB9Dsrg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fpipeline-stage-view-plugin%2Fblob%2Fmaster%2Frest-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fcloudbees%2Fworkflow%2Frest%2Fendpoints%2FJobAPI.java%23L72\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFIQI5Yz43qEJhHfk4uSdvqB9Dsrg&#39;;return true;">https://github.com/jenkinsci/pipeline-stage-view-plugin/blob/master/rest-api/src/main/java/com/cloudbees/workflow/rest/endpoints/JobAPI.java#L72

and also create a version of this that adds filter conditions:

<a href="https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fjenkinsci%2Fpipeline-stage-view-plugin%2Fblob%2Fmaster%2Frest-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fcloudbees%2Fworkflow%2Frest%2Fexternal%2FJobExt.java%23L121&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNHHOnqUUH6e5tRFIPtXpRAVYbBE2w" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fpipeline-stage-view-plugin%2Fblob%2Fmaster%2Frest-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fcloudbees%2Fworkflow%2Frest%2Fexternal%2FJobExt.java%23L121\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHHOnqUUH6e5tRFIPtXpRAVYbBE2w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fpipeline-stage-view-plugin%2Fblob%2Fmaster%2Frest-api%2Fsrc%2Fmain%2Fjava%2Fcom%2Fcloudbees%2Fworkflow%2Frest%2Fexternal%2FJobExt.java%23L121\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHHOnqUUH6e5tRFIPtXpRAVYbBE2w&#39;;return true;">https://github.com/jenkinsci/pipeline-stage-view-plugin/blob/master/rest-api/src/main/java/com/cloudbees/workflow/rest/external/JobExt.java#L121

and then you'd need to surface this somewhere in the UI when making the initially HTTP requests (in the UI plugin) and change the API call it invokes (a variety of places).

Regards,
Sam

On Friday, March 17, 2017 at 2:40:58 AM UTC-4, Martin Holeček wrote:
Dear all,

please, which part of the pipeline stage view plugin's sources would be most suitable for an insertion of a filter?

What I need to accomplish - I do want to see historical builds that have a specific parameter equal a specific value for one specific job.
I do not want to filter jobs, like every answer on stackoverflow assumes, I want to see the nice stageview but filtered... and since there seems to not be such a functionality, I need to try to create one. Yea, like filtering the historical builds in the left column, but doing this for the stageview.

I was not able to locate such a point in the sources where a filter could be inserted.

If You would  think, that this solution is not wise, if maybe exporting the build history and doing select over csv file would serve better, tell me ;)

Thank You very much!
Martin

--
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/23c1a9a1-a704-4c39-82e5-d185796d810a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...