From ec41f1748b3a0dcf67d5e1b5f605c28100edb23f Mon Sep 17 00:00:00 2001 From: cruizba Date: Sun, 16 Nov 2025 20:16:01 +0100 Subject: [PATCH] ci-scripts: Allow build to use specific kurento java commit --- ci-scripts/commons/build.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/ci-scripts/commons/build.sh b/ci-scripts/commons/build.sh index 1cd3970b0..3ad4418dc 100644 --- a/ci-scripts/commons/build.sh +++ b/ci-scripts/commons/build.sh @@ -80,6 +80,10 @@ if [[ -n ${1:-} ]]; then CHECK_AND_PREPARE_KURENTO_SNAPSHOT=true ;; + --use-specific-kurento-java-commit) + USE_SPECIFIC_KURENTO_JAVA_COMMIT=true + ;; + *) echo "Unrecognized method $1" exit 1 @@ -248,3 +252,22 @@ if [[ "${CHECK_AND_PREPARE_KURENTO_SNAPSHOT}" == true ]]; then echo "Kurento version is not a SNAPSHOT: ${KURENTO_VERSION}" fi fi + +# ------------- +# Use a specific kurento-java commit other than the configured in openvidu-parent pom.xml +# ------------- +if [[ "${USE_SPECIFIC_KURENTO_JAVA_COMMIT}" == true ]]; then + + git clone https://github.com/Kurento/kurento.git + pushd kurento/clients/java + git checkout -f "${KURENTO_JAVA_COMMIT}" + COMMIT_VERSION="kurento-$(git rev-parse --short HEAD)" + mvn -f qa-pom/pom.xml versions:set -DnewVersion="${COMMIT_VERSION}" -DgenerateBackupPoms=false && mvn -f parent-pom/pom.xml versions:set -DnewVersion="${COMMIT_VERSION}" -DgenerateBackupPoms=false -DprocessParent=true + mvn -B -Dmaven.artifact.threads=1 clean install + popd + rm -rf kurento + mvn -B versions:set-property \ + -Dproperty=version.kurento \ + -DnewVersion="${COMMIT_VERSION}" + +fi