Feature/acs 10404 test runtime compatibility with java21n25 (#1153)

* ACS-10404 Base Branch - Test ATS T-core runtime compatibility with Java 21 and 25
This commit is contained in:
Belal Ansari
2025-10-29 12:38:10 +05:30
committed by GitHub
parent 0df5c18254
commit 1bfe0f4c4e
10 changed files with 124 additions and 54 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
if [ -n "$JAVA_RUNTIME_VERSION" ]; then
declare -A JAVA_IMAGE_MAP=(
[21]="alfresco/alfresco-base-java:jre21-rockylinux9@sha256:792079aa36a7a1076e7d48dd800b5de5ffc1cd48e8460fd7e56f7107d375c0cc"
[25]="alfresco/alfresco-base-java:jre25-rockylinux9@sha256:2e8664a6148157e0fd8c7861120c31768f510b5baaac86fd90c8b58aef5941eb"
)
JAVA_BASE_IMAGE="${JAVA_IMAGE_MAP[$JAVA_RUNTIME_VERSION]}"
export JAVA_BASE_IMAGE
fi
+16 -3
View File
@@ -9,14 +9,27 @@ pushd "$(dirname "${BASH_SOURCE[0]}")/../"
[ "${PULL_REQUEST}" = "false" ] && [ "${BRANCH_NAME}" = "master" ] && PROFILE="internal" || PROFILE="local"
# If the branch is "master" and the commit is not a Pull Request then deploy the JAR SNAPSHOT artifacts
[ "${PULL_REQUEST}" = "false" ] && [ "${BRANCH_NAME}" = "master" ] && DEPLOY="deploy" || DEPLOY="verify"
[ "${PULL_REQUEST}" = "false" ] && [ "${BRANCH_NAME}" = "master" ] && MAVEN_PHASE="deploy" || MAVEN_PHASE="verify"
if [ "${SMOKE_TESTS}" = "true" ]; then
ADDITIONAL_MAVEN_OPTS="-Dit.test=**/*IT.java"
else
ADDITIONAL_MAVEN_OPTS=""
fi
if [ "${SKIP_DEPLOY}" = "true" ]; then
MAVEN_PHASE="verify"
fi
source "$(dirname "${BASH_SOURCE[0]}")/java_base_image_map.sh"
# Do not deploy snapshots for alfresco-transform-core, alfresco-transformer-base and alfresco-base-t-engine
mvn -B -U -Dmaven.wagon.http.pool=false \
clean ${DEPLOY} \
clean ${MAVEN_PHASE} \
-DadditionalOption=-Xdoclint:none -Dmaven.javadoc.skip=true \
-Dparent.core.deploy.skip=true -Dtransformer.base.deploy.skip=true \
"-P${PROFILE},docker-it-setup,${1}"
"-P${PROFILE},docker-it-setup,${1}" \
${ADDITIONAL_MAVEN_OPTS}
docker ps -a -q | xargs -r -l docker stop ; docker ps -a -q | xargs -r -l docker rm