ci-scripts: update build-openvidu-parent and build-openvidu-java-client methods

pull/788/head
pabloFuente 2023-03-15 21:14:15 +01:00
parent 280ba3b0c2
commit 0eb91d8948
2 changed files with 15 additions and 8 deletions

View File

@ -82,7 +82,7 @@ jobs:
- name: Build openvidu-testapp - name: Build openvidu-testapp
run: /opt/commons.sh --build-openvidu-testapp run: /opt/commons.sh --build-openvidu-testapp
- name: Build openvidu-server dashboard - name: Build openvidu-server dashboard
run: /opt/commons.sh --build-openvidu-server-dashboard run: /opt/commons.sh --build-openvidu-server-dashboard true
- name: Build openvidu-server - name: Build openvidu-server
run: /opt/commons.sh --build-openvidu-server run: /opt/commons.sh --build-openvidu-server
- name: openvidu-server unit tests - name: openvidu-server unit tests

View File

@ -73,8 +73,12 @@ if [[ -n ${1:-} ]]; then
;; ;;
--build-openvidu-server-dashboard) --build-openvidu-server-dashboard)
if [[ -z "${2:-}" ]]; then
echo "Must provide LINK_LOCAL_DEPENDENCIES as 1st parameter"
exit 1
fi
BUILD_OV_SERVER_DASHBOARD=true BUILD_OV_SERVER_DASHBOARD=true
LINK_LOCAL_DEPENDENCIES="${2:-true}" LINK_LOCAL_DEPENDENCIES="${2}"
;; ;;
--build-openvidu-server) --build-openvidu-server)
@ -86,8 +90,12 @@ if [[ -n ${1:-} ]]; then
;; ;;
--build-openvidu-server-pro-inspector) --build-openvidu-server-pro-inspector)
if [[ -z "${2:-}" ]]; then
echo "Must provide LINK_LOCAL_DEPENDENCIES as 1st parameter"
exit 1
fi
BUILD_OV_SERVER_PRO_INSPECTOR=true BUILD_OV_SERVER_PRO_INSPECTOR=true
LINK_LOCAL_DEPENDENCIES="${2:-true}" LINK_LOCAL_DEPENDENCIES="${2}"
;; ;;
--build-openvidu-server-pro) --build-openvidu-server-pro)
@ -380,7 +388,7 @@ if [[ "${USE_SPECIFIC_KURENTO_JAVA_COMMIT}" == true ]]; 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}"
MVN_VERSION="$(grep -oPm1 "(?<=<version>)[^<]+" "pom.xml")" MVN_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
mvn -B -Dmaven.artifact.threads=1 clean install mvn -B -Dmaven.artifact.threads=1 clean install
popd popd
rm -rf kurento-java rm -rf kurento-java
@ -423,12 +431,12 @@ fi
# ------------- # -------------
if [[ "${BUILD_OV_JAVA_CLIENT}" == true ]]; then if [[ "${BUILD_OV_JAVA_CLIENT}" == true ]]; then
pushd openvidu-java-client pushd openvidu-java-client
mvn -B versions:set -DnewVersion=TEST MVN_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
mvn -B clean compile package mvn -B clean compile package
mvn -B install:install-file -Dfile=target/openvidu-java-client-TEST.jar \ mvn -B install:install-file -Dfile=target/openvidu-java-client-${MVN_VERSION}.jar \
-DgroupId=io.openvidu \ -DgroupId=io.openvidu \
-DartifactId=openvidu-java-client \ -DartifactId=openvidu-java-client \
-Dversion=TEST -Dpackaging=jar -Dversion=${MVN_VERSION} -Dpackaging=jar
popd popd
fi fi
@ -436,7 +444,6 @@ fi
# Build openvidu-parent # Build openvidu-parent
# ------------- # -------------
if [[ "${BUILD_OV_PARENT}" == true ]]; then if [[ "${BUILD_OV_PARENT}" == true ]]; then
mvn -B versions:set-property -Dproperty=version.openvidu.java.client -DnewVersion=TEST
mvn -B -DskipTests=true -Dmaven.artifact.threads=1 clean install mvn -B -DskipTests=true -Dmaven.artifact.threads=1 clean install
fi fi