diff --git a/test/plugin/containers/jvm-container/pom.xml b/test/plugin/containers/jvm-container/pom.xml index 351bae8b93a170b5444a333b474f81542d580781..6ca2023e9c43d5a9c65096d226772dbd9054d5d3 100644 --- a/test/plugin/containers/jvm-container/pom.xml +++ b/test/plugin/containers/jvm-container/pom.xml @@ -92,7 +92,7 @@ skywalking/agent-test-jvm:jdk14-${project.version} - openjdk:14 + openjdk:14-buster /usr/local/skywalking/scenario dir @@ -100,7 +100,6 @@ assembly.xml - yum install -y unzip chmod +x /usr/local/skywalking/run.sh tar -xvf ../tools/skywalking-mock-collector.tar.gz -C ../tools diff --git a/test/plugin/run.sh b/test/plugin/run.sh index fd149ccb2a7ab3d53e96c12ffcea814a2e59bb38..2a09008c5d50e6f6493894b43dc17c824754b67f 100755 --- a/test/plugin/run.sh +++ b/test/plugin/run.sh @@ -140,7 +140,11 @@ if [[ ! -d ${agent_home} ]]; then echo "[WARN] SkyWalking Agent not exists" ${mvnw} --batch-mode -f ${home}/../../pom.xml -Pagent -DskipTests clean package fi -[[ "$force_build" == "on" ]] && ${mvnw} --batch-mode -f ${home}/pom.xml clean package -DskipTests +if [[ "$force_build" == "on" ]]; then + profile= + [[ $image_version =~ "jdk14-" ]] && profile="-Pjdk14" + ${mvnw} --batch-mode -f ${home}/pom.xml clean package -DskipTests ${profile} +fi workspace="${home}/workspace/${scenario_name}" [[ -d ${workspace} ]] && rm -rf $workspace