Refresh a browser from Jenkins

I’m preparing my Ansible playbook to switch the Jenkins instance in “LoadBalancer”. I’m almost done but one thing is missing.
I need to reload the page in the user’s browser. Is it possible to do this?
I read about the sse-gateway plugin but I don’t know how I would use it.
I use groovy scripts to:

  • enable/disable maintenance mode
  • reload configuration
  • restart Jenkins


Can I do the same thing through a groovy script? Is it a different context?

Best regards, Piotr