Skip to content
Snippets Groups Projects
Commit 9d2e32a2 authored by David Georg Reichelt's avatar David Georg Reichelt
Browse files

Fix Kieker download: Switch to 2.0.0-SNAPSHOT and asure the first

snapshot is used if two snapshots are available
parent 0b45cd6d
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ JAVA_BIN="java" ...@@ -7,7 +7,7 @@ JAVA_BIN="java"
RSCRIPT_PATH="../stats.csv.r" RSCRIPT_PATH="../stats.csv.r"
DATA_DIR="${BASE_DIR}/data" DATA_DIR="${BASE_DIR}/data"
AGENT="${BASE_DIR}/kieker-1.15-SNAPSHOT-aspectj.jar" AGENT="${BASE_DIR}/kieker-2.0.0-SNAPSHOT-aspectj.jar"
BATCH_MODE="yes" BATCH_MODE="yes"
......
...@@ -25,9 +25,15 @@ function getKiekerAgent() { ...@@ -25,9 +25,15 @@ function getKiekerAgent() {
if [ ! -f $AGENT ] if [ ! -f $AGENT ]
then then
# get agent # get 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 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 '/$' | grep -v ".xml" | head -n 1`
export AGENT_PATH=`curl "${VERSION_PATH}" | grep 'aspectj.jar</resourceURI' | sort | sed 's/ *<resourceURI>//g' | sed 's/<\/resourceURI>//g' | tail -1` 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}" curl "${AGENT_PATH}" > "${AGENT}"
if [ ! -f $AGENT ] | [ -s $AGENT ]
then
echo "Kieker download from $AGENT_PATH failed; please asure that a correct Kieker AspectJ file is present!"
fi
fi fi
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment