Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
AGENT_VERSION=$(curl -s -X GET "https://$DOMAIN/sl-api/v1/agent-apis/agents/types/sealights-java/default-version"  -H "accept: application/json" -H "Authorization: Bearer $SL_TOKEN" | sed 's/.*"version":"\([0-9\.]*\).*/\1/'jq -r .version)
wget -O sl-build-scanner.jar https://oss.sonatype.org/service/local/repositories/releases/content/io/sealights/on-premise/agents/sl-build-scanner/${AGENT_VERSION}/sl-build-scanner-${AGENT_VERSION}.jar
wget -O sl-test-listener.jar https://oss.sonatype.org/service/local/repositories/releases/content/io/sealights/on-premise/agents/sl-test-listener/${AGENT_VERSION}/sl-test-listener-${AGENT_VERSION}.jar

...