Automatically Restart Jenkins JLNP after disconnect (MacOS)

I have a Jenkins agent JNLP that runs on MacOS (OSX) and connects to our Jenkins Controller.

The machine that the JNLP runs on needs to connect to the Jenkins Controller via VPN.

Occasionally this VPN connection drops and the JNLP looses its connection and needs to be restarted by:

  • Logging into Mac running JNLP agent

  • Closing JNLP client

  • Launch JNLP client

Is there a way that I can automatically restart the JNLP agent whenever it looses connection to the Controller?

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like