Skip to content

Testing custom builds of swarm agent.jar

Jim Klimov edited this page Oct 30, 2022 · 1 revision

Taking https://github.com/jenkinsci/swarm-plugin/pull/493 as example...

As abuild (user that the agent runs as), get the JAR with uniquely suffixed name:

:; cd ~/jenkins-swarm && \
   wget https://ci.jenkins.io/job/Plugins/job/swarm-plugin/job/PR-493/1/artifact/client/target/swarm-client.jar \
      -O swarm-client-PR493-1.jar

Tweak either the currently exported envvars (if test-running the agent straight from shell), the swarm-client-download.sh, or the service wrapper for the OS -- to somehow export LASTVER=PR493-1 (for the example above). Finally, (re)start the agent program with swarm-client-nutci.sh (or service that wraps it, as appropriate) to watch its behavior.

Clone this wiki locally