jenkinsci / build-monitor-plugin

Jenkins Build Monitor Plugin
https://plugins.jenkins.io/build-monitor-plugin/
MIT License
725 stars 279 forks source link

Setting build order #284

Open morsmodre opened 7 years ago

morsmodre commented 7 years ago

Hi. Is it possible to change the builds order on your monitor? As of now, the builds (even if all green) assume the alphabetical order and sometimes that's not what is wanted. thanks!

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41131672-setting-build-order?utm_campaign=plugin&utm_content=tracker%2F580790&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F580790&utm_medium=issues&utm_source=github).
jan-molak commented 7 years ago

Hey @morsmodre when you go to the view configuration (by clicking the name/title of the build monitor, for example) you can choose other ordering. The ones currently supported are defined here.

Does that answer your question?

morsmodre commented 7 years ago

Not exactly ~ I wanted to be able to define an specific, non-standard order, that follows no pattern. But I cannot find a way to do it

jan-molak commented 7 years ago

I see; Arbitrary ordering is not supported (yet) I'm afraid, but I'd be more than happy to review pull requests enabling this functionality.

In the meantime, you might want to consider configuring your Build Monitor to use View Job Filters to limit the number of builds displayed, or perhaps contribute a custom comparator to enable the ordering you're after?

Jan

Xyaren commented 7 years ago

Can't we work out something with the job description? Then you can just write a number in the last line of the description and then use a comparator comparing these numbers.

No a very clean solution but might work.

m4recek commented 6 years ago

For us, a list of coma separated job names would be sufficient. That way we can have any order we want.

mia-petkovic commented 6 years ago

Is there an existing plug-in that allows rearranging the blocks in build monitor? I am interested in two functionalities: 1.ability to change the order the jobs (not by already existing sorting mechanisms). 2. ability to change the size and the position of the blocks (so for instance, we have first block in the first row and all the others split in two)