Don't fail cross-distro.sh on nightly CI pipeline

when it discovers "missing distros" b/c this check isn't suitable for
downstream RHEL anyway. See comment in script for more details!

Related: COMPOSER-1943
This commit is contained in:
Alexander Todorov 2023-04-13 11:03:34 +03:00 committed by Alexander Todorov
parent 14a9b2395d
commit 5cd73ad946

View file

@ -115,7 +115,14 @@ if [ "$ALL_EXPECTED_DISTROS" != "$INSTALLED_DISTROS" ];then
echo "Some distros are missing!"
echo "Missing distros:"
diff <(echo "${ALL_EXPECTED_DISTROS}") <(echo "${INSTALLED_DISTROS}") | grep "<" | sed 's/^<\ //g'
exit 1
# the check above compares repositories/*.json files from git checkout
# vs the files installed from an RPM package in order to find files which are
# not included in the RPM. Don't fail when running on nightly CI pipeline b/c
# very often the repository will be newer than the downstream RPM.
if [[ "${CI_PIPELINE_SOURCE:-}" != "schedule" ]]; then
exit 1
fi
fi
# Push a blueprint with unsupported distro to see if composer fails gracefuly