MCMicS / jenkins-control-plugin

Jenkins integration in IDEA Platforms
https://plugins.jetbrains.com/plugin/6110-jenkins-control-plugin
Apache License 2.0
250 stars 123 forks source link

Feature request: Only display finished jobs in status bar #242

Open FeralFox opened 4 years ago

FeralFox commented 4 years ago

Hello, It would be nice to have the option to display only the results of finished jobs in the status bar. If a job is currently running, the result of the last run would be shown. The background is a policy in our company that we should not commit if some stages are failing. Currently, I always have to open the sidebar since I do not see whether the "None" jobs where failing and thus commiting is fine or not. Best regards and thank you for the great work!

MCMicS commented 4 years ago

What mean finished jobs ans last run?

Would you see only jobs jobs which are started from ur ide?

And what are None jobs?

Could you provide an image of that?

FeralFox commented 4 years ago

I would like to avoid an image since I am not sure whether my employer would be happy with it. But I can of course describe this further: I have a stage with 10 jobs selected in the Jenkins side bar. Let's say 6 of them are finished and four of them are still running. in the settings if the Jenkins plugin I have selected "Use green colour for successful build" and "Show all builds in status bar". In the status bar, I see now a green dot for the 6 finished jobs of that stage and a grey dot for the 4 jobs that are currently running. For these 4 jobs I would like to see the result of the last run in the status bar. So I could determine whether they where fine or whether they are currently broken and someone is (probably) fixing this. One could call that option "Display last result for currently running builds". Maybe this makes the request clearer.

The general problem for me is that these 10 jobs run quite often and some run 5-10 minutes. So in most cases there is a job running.

MCMicS commented 4 years ago

Ok I understand the issue (I think) You want to show the last result for running builds. IS an tooltip with something like following message ok for your needs: 4 Running Build (3 was stable in last Build)

FeralFox commented 4 years ago

I think you understood it right :) I think an option to toggle the behaviour would bring a bigger benefit: if I have to hover the status bar to get the information I could also click on it and open the Jenkins side bar. Whereas if I could toggle the behaviour I can check the state at a glance even if there is a modal dialog opened (e.g. the commit dialog or the push dialog)

MCMicS commented 4 years ago

Open the sidebar is possible currently. Without hovering i think it is misleading to show another green state for last running. So if a modal dialog is open it could happen to show all colors twice because last build are shown separately

But I think about an solution for this

FeralFox commented 4 years ago

I think maybe one could just display the results of the last run in the status bar and have a little indicatoron on the icon(s) for the jobs that are currently running. This way, you could also see if the failed jobs are currently in progress and have a chance to be fixed in a few moments. As an example: you have some failed jobs and some green jobs, so you have a red and a green circle on the status bar. Some of the (recently) failed jobs are still in progress, so there is an indicatoron on the red circle. The "good" jobs are all finished so there is no indicatoron on the green circle. Just as an idea. But maybe it is too complicated to understand. Of course it is a good idea to additionally show the state as text in a tooltip for new users.

MCMicS commented 4 years ago

I'll think about that to get a good ux for this. Maybe a second status bar for this purpose only