We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f6f96b2 + 8cd8108 commit 3fa3d33Copy full SHA for 3fa3d33
tools/Contrast/runBenchmark_wContrast.sh
@@ -16,7 +16,7 @@ if $(find contrast.jar -mmin +1440); then
16
echo "Using Contrast agent downloaded in past day"
17
else
18
echo "Fetching the latest Contrast agent"
19
- curl -o contrast.jar -L "https://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.contrastsecurity&a=contrast-agent&v=LATEST"
+ export VERSION=$(echo "$(curl --fail --silent "https://search.maven.org/solrsearch/select?q=g:"com.contrastsecurity"&a:"contrast-agent"&rows=20&wt=json" | jq -r '.response.docs[0].latestVersion')") && Curl --silent https://repo1.maven.org/maven2/com/contrastsecurity/contrast-agent/${VERSION}/contrast-agent-${VERSION}.jar -o contrast.jar
20
fi
21
22
if [ -d ./working ]; then
0 commit comments