ci-scripts: replace PREPARE_KURENTO_SNAPSHOT to USE_SPECIFIC_KURENTO_JAVA_COMMIT

pull/788/head
pabloFuente 2023-03-15 13:25:09 +01:00
parent 9c2bb6a5c6
commit c9d172c0af
1 changed files with 15 additions and 18 deletions

View File

@ -9,7 +9,7 @@ set -eu -o pipefail
# CI flags # CI flags
CLEAN_ENVIRONMENT=false CLEAN_ENVIRONMENT=false
PREPARE_TEST_ENVIRONMENT=false PREPARE_TEST_ENVIRONMENT=false
PREPARE_KURENTO_SNAPSHOT=false USE_SPECIFIC_KURENTO_JAVA_COMMIT=false
SERVE_OV_TESTAPP=false SERVE_OV_TESTAPP=false
# Build artifacts # Build artifacts
@ -48,8 +48,8 @@ if [[ -n ${1:-} ]]; then
PREPARE_TEST_ENVIRONMENT=true PREPARE_TEST_ENVIRONMENT=true
;; ;;
--prepare-kurento-snapshot) --use-specific-kurento-java-commit)
PREPARE_KURENTO_SNAPSHOT=true USE_SPECIFIC_KURENTO_JAVA_COMMIT=true
;; ;;
--build-openvidu-browser) --build-openvidu-browser)
@ -373,12 +373,10 @@ if [[ "${PREPARE_TEST_ENVIRONMENT}" == true ]]; then
fi fi
# ------------- # -------------
# Prepare Kurento Snapshots # Use a specific kurento-java commit other than the configured in openvidu-parent pom.xml
# ------------- # -------------
if [[ "${PREPARE_KURENTO_SNAPSHOT}" == true ]]; then if [[ "${USE_SPECIFIC_KURENTO_JAVA_COMMIT}" == true ]]; then
# Prepare Kurento Snapshot if it is configured
if [[ $KURENTO_JAVA_COMMIT != "default" ]]; then
git clone https://github.com/Kurento/kurento-java.git git clone https://github.com/Kurento/kurento-java.git
pushd kurento-java pushd kurento-java
git checkout -f "${KURENTO_JAVA_COMMIT}" git checkout -f "${KURENTO_JAVA_COMMIT}"
@ -389,7 +387,6 @@ if [[ "${PREPARE_KURENTO_SNAPSHOT}" == true ]]; then
mvn -B versions:set-property \ mvn -B versions:set-property \
-Dproperty=version.kurento \ -Dproperty=version.kurento \
-DnewVersion="${MVN_VERSION}" -DnewVersion="${MVN_VERSION}"
fi
fi fi