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

36 views
Skip to first unread message

Martin Holeček

unread,
Mar 17, 2017, 2:40:58 AM3/17/17
to Jenkins Developers
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

Samuel Van Oort

unread,
Mar 17, 2017, 2:06:25 PM3/17/17
to Jenkins Developers
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:


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


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

Martin Holeček

unread,
Mar 21, 2017, 5:27:20 PM3/21/17
to Jenkins Developers
Thank You very much!

Dne pátek 17. března 2017 19:06:25 UTC+1 Samuel Van Oort napsal(a):
Reply all
Reply to author
Forward
0 new messages