From 59557ed80177ecf460e0f2d0c0848acd221dde5d Mon Sep 17 00:00:00 2001 From: nbuckwalt Date: Thu, 26 Oct 2023 16:21:08 -0400 Subject: [PATCH 1/2] Update runBenchmark_wContrast.sh Fixed maven lookup --- tools/Contrast/runBenchmark_wContrast.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Contrast/runBenchmark_wContrast.sh b/tools/Contrast/runBenchmark_wContrast.sh index 32aeeeeafe..a86ca2f2a6 100755 --- a/tools/Contrast/runBenchmark_wContrast.sh +++ b/tools/Contrast/runBenchmark_wContrast.sh @@ -16,7 +16,7 @@ if $(find contrast.jar -mmin +1440); then echo "Using Contrast agent downloaded in past day" else echo "Fetching the latest Contrast agent" - 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-agent-${VERSION}.jar fi if [ -d ./working ]; then From 8c4e3bf9078f7ea7935659a82f900f6ec027a7b7 Mon Sep 17 00:00:00 2001 From: nbuckwalt Date: Fri, 27 Oct 2023 14:27:22 -0400 Subject: [PATCH 2/2] Update runBenchmark_wContrast.sh renamed output contrast-agent-${VERSION}.jar to contrast.jar to maintain parity from previous versions --- tools/Contrast/runBenchmark_wContrast.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Contrast/runBenchmark_wContrast.sh b/tools/Contrast/runBenchmark_wContrast.sh index a86ca2f2a6..738be21517 100755 --- a/tools/Contrast/runBenchmark_wContrast.sh +++ b/tools/Contrast/runBenchmark_wContrast.sh @@ -16,7 +16,7 @@ if $(find contrast.jar -mmin +1440); then echo "Using Contrast agent downloaded in past day" else echo "Fetching the latest Contrast agent" - 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-agent-${VERSION}.jar + 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 fi if [ -d ./working ]; then