build-monitor-plugin icon indicating copy to clipboard operation
build-monitor-plugin copied to clipboard

Recover from network connectivity or server issues automatically

Open leosh64 opened this issue 4 years ago • 3 comments

If the build monitor plugin page encounters an error with the connection to the Jenkins host (e.g. network issue such as host temporarily unreachable, or Jenkins server error 403), the entire screen is greyed out and a warning popup is shown with the error message.

While this is generally a nice functionality, it would be great if the build monitor could try to automatically recover from this state, for example:

  • try to query the server again after a certain time, and
  • if successful, hide the warning popup and resume normal operation

leosh64 avatar Jul 29 '20 03:07 leosh64

This is extra critical for a function like this since it is generally used on a screen with no keyboard or mouse available. So there is no way to manually refresh the page to recover.

CendioOssman avatar Oct 15 '20 07:10 CendioOssman

This is extra critical for a function like this since it is generally used on a screen with no keyboard or mouse available. So there is no way to manually refresh the page to recover.

Exactly. Currently, we always have to restart the edge client displaying the build monitor page.

leosh64 avatar Oct 16 '20 11:10 leosh64

So I've got some stupid solution to this, but that works. Via Tampermonkey extension just integrate this pastebin: https://pastebin.com/JyibgWgD

It basically checks for 2 things every 5 seconds:

  • if there are any buttons Refresh, it clicks them - in case mothership dies
  • if there are any h1s with Sorry to bother you, text, it reloads the page - in case e.g. 503 is returned

LeoSko avatar Oct 20 '20 08:10 LeoSko