Downloading The Java Agent

Downloading The Latest Version

Agent Files

There are two agent files

  • Build Scanner - sl-build-scanner.jar

  • Test Listener - sl-test-listener.jar

Download them from: https://agents.sealights.co/sealights-java/sealights-java-latest.ziparrow-up-right

circle-info

If you want to query the latest version you can do so with the following sample command: curl https://agents.sealights.co/sealights-java/sealights-java-version.txt

circle-exclamation

Sample commands for download

wget -nv https://agents.sealights.co/sealights-java/sealights-java-latest.zip
unzip -oq sealights-java-latest.zip

#curl tool can also be used
#curl -L "https://agents.sealights.co/sealights-java/sealights-java-latest.zip" --output sealights-java-latest.zip

Downloading the Specific Version Defined in Customer Settings

Existing Customers can also download agents using the API below, which requires the use of an Agent or API token from the customer's Sealights dashboard. For Customers that need to set a specific recommended agent version other than the default latest, the API will download the recommended agent that has been set on the dashboard.

circle-info

In the following examples, replace $DOMAIN with your domain and $SL_TOKEN with your SeaLights agent token

Downloading a single agent from a local repo

In certain cases where you want to download just a single agent, or even if you want to download both from a local repo, you can use the sealights API to get the recommended version and then download the file directly.

circle-info

In the example below, replace $DOMAIN with your domain and $SL_TOKEN with your SeaLights agent token and the repo URL to your internal one. Currently, the lines below download the Java agents (scanner and listener) from Maven Central.

The agent version can be managed via the dashboard under the Settings > Cockpit & Onboarding > Agent Versions section below.

circle-info

Please refer to the following troubleshooting page to manage/update agents versions deployed locally: Keeping Your Agent Updated.

Last updated

Was this helpful?