diff --git a/frameworks/Kieker/scripts/run-benchmark.sh b/frameworks/Kieker/scripts/run-benchmark.sh index ee575a61c51069382fa9449353dff0d781318118..4a2b5854afbccb50180c448ae3179f7d71858d1d 100755 --- a/frameworks/Kieker/scripts/run-benchmark.sh +++ b/frameworks/Kieker/scripts/run-benchmark.sh @@ -29,7 +29,9 @@ cd ${BASE_DIR} # install benchmark tar -xvpf ${BASE_DIR}/../../../benchmark/build/distributions/benchmark.tar # get agent -curl "https://oss.sonatype.org/service/local/repositories/snapshots/content/net/kieker-monitoring/kieker/1.15-SNAPSHOT/kieker-1.15-20201102.131525-117-aspectj.jar" > "${AGENT}" +export VERSION_PATH=`curl "https://oss.sonatype.org/service/local/repositories/snapshots/content/net/kieker-monitoring/kieker/" | grep '<resourceURI>' | sed 's/ *<resourceURI>//g' | sed 's/<\/resourceURI>//g' | grep '/$'` +export AGENT_PATH=`curl "${VERSION_PATH}" | grep 'aspectj.jar</resourceURI' | sort | sed 's/ *<resourceURI>//g' | sed 's/<\/resourceURI>//g' | tail -1` +curl "${AGENT_PATH}" > "${AGENT}" # copy receiver tar -xvpf ${BASE_DIR}/../../../tools/receiver/build/distributions/receiver.tar # copy result compiler