The connection is maintained with simple crontab:
* * * * * ps aux|grep -v grep|grep -q jenkins-wendy || java -jar /home/jenkins/wendy/agent.jar -jnlpUrl https://jenkins-wendy.ci.feedhenry.org/computer/OCP-slave/slave-agent.jnlp -secret <secret> -workDir "/home/jenkins/wendy" &
|
|