mirror of https://github.com/OpenVidu/openvidu.git
ci-scripts: simplify kurento-snapshots.xml setup
parent
2ec56608aa
commit
572cc46c52
|
@ -347,16 +347,11 @@ if [[ "${PREPARE_TEST_ENVIRONMENT}" == true ]]; then
|
||||||
|
|
||||||
# Configure Snapshots repository
|
# Configure Snapshots repository
|
||||||
if [[ -n "${KURENTO_SNAPSHOTS_URL:-}" ]]; then
|
if [[ -n "${KURENTO_SNAPSHOTS_URL:-}" ]]; then
|
||||||
# Cd to GITHUB_ACTIONS_ORIGINAL_WORKING_DIR only if GITHUB_ACTIONS_WORKING_DIR is set
|
mkdir -p /etc/maven
|
||||||
if [[ -n "${GITHUB_ACTIONS_WORKING_DIR:-}" ]]; then
|
cd /etc/maven
|
||||||
pushd "${GITHUB_ACTIONS_ORIGINAL_WORKING_DIR}"/ci-scripts
|
rm -f settings.xml
|
||||||
curl https://raw.githubusercontent.com/OpenVidu/openvidu/master/ci-scripts/kurento-snapshots.xml -o kurento-snapshots.xml
|
curl https://raw.githubusercontent.com/OpenVidu/openvidu/master/ci-scripts/kurento-snapshots.xml -o settings.xml
|
||||||
else
|
sed -i "s|KURENTO_SNAPSHOTS_URL|${KURENTO_SNAPSHOTS_URL}|g" settings.xml
|
||||||
pushd ci-scripts
|
|
||||||
fi
|
|
||||||
sed -i "s|KURENTO_SNAPSHOTS_URL|${KURENTO_SNAPSHOTS_URL}|g" kurento-snapshots.xml
|
|
||||||
rm /etc/maven/settings.xml
|
|
||||||
mv kurento-snapshots.xml /etc/maven/settings.xml
|
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue