The following features can be enabled after upgrading Jenkins to 2.60.1:
Automatic upgrade of Remoting library (
slave.jar) on agents
Automatic termination of runaway agent processes on agents
Automatic termination of Jenkins controller processes
|The described features and guidelines apply to classic JNLP agents installed as services. Plugins like Windows Agents Plugin do not offer all features so far, see JENKINS-42743.|
The upgrade steps are described in the Agent Upgrade Guide (Windows Agent Installer Module Docs).
The only non-trivial action is a XML configuration change. During the 2.60.1 upgrade it is recommended to perform the following steps:
Add the Runaway Process Killer extension.
See the example in the template referenced below.
Enable automatic download of the
<download from="JENKINS_URL/jnlpJars/slave.jar" to="%BASE%\slave.jar"/> (replace
JENKINS_URL by the actual URL)
|If you use Jenkins with HTTP over insecure network, be aware of the risk of MITM attacks. By default new agents have auto-update enabled for HTTPS only.|
When updating the
jenkins-slave.xml configuration file, you can use
as a template for the new configuration.
Jenkins controller executables may run away in some rare cases, hence it is recommended to enable the Runaway Process Killer for them.
In order to upgrade the master and enable this feature, perform the following steps:
Update Jenkins to 2.60.1 and start the instance. It will automatically upgrade the
Stop the Jenkins service
jenkins.xml in the Jenkins home directory
To enable Runaway Process Killer, add the following entry to
Start Jenkins again
To verify the upgrade correctness, check the
It should contain log entries related Runaway Process Killer after the successful startup.