The github page specifies JRE to be 11+, but this doesn’t apply to the older version of Jenkins right? Also how can I check the swarm-client.jar version I got from Jenkins?
Use the same JDK version that is running your Jenkins controller. That version is displayed in the system information page that is available under “Manage Jenkins”
Thanks Mark! This is great to know. How do I find the corresponding swarm-client version for a Jenkins version? If I follow the instruction for swarm plugin, e.g downloading from ${JENKINS_URL}/swarm/swarm-client.jar
Download the swarm client from that location and that is the correct version. The swarm plugin supports a range of Jenkins versions. If the swarm plugin is installed and enabled on your Jenkins controller, then download from that URL will provide the correct swarm-client.jar file.
I didn’t find a way to report the version that is included in the swarm-client jar file. The version information is stored in META-INF/maven/org.jenkins-ci.plugins/swarm-client/pom.xml inside the jar file, but there does not seem to be a command line argument that reports the swarm client jar file version number.