Introduce new error message on enterprise merge checks

pull/5717/head
Hanefi Onaldi 2022-02-17 02:41:11 +03:00
parent 78795251e1
commit 3ca2be85a7
No known key found for this signature in database
GPG Key ID: F18CDB10BA0DFDC7
1 changed files with 8 additions and 0 deletions

View File

@ -65,6 +65,14 @@ fi
# undo partial merge # undo partial merge
git merge --abort git merge --abort
# If we have a conflict on enterprise merge on the master branch, we have a problem.
# Provide an error message to indicate that enterprise merge is needed to fix this check.
if [[ $PR_BRANCH = master ]]; then
echo "ERROR: Master branch has merge conflicts with enterprise-master."
echo "Try re-running this CI job after merging your changes into enterprise-master."
exit 1
fi
if ! git fetch enterprise "$PR_BRANCH" ; then if ! git fetch enterprise "$PR_BRANCH" ; then
echo "ERROR: enterprise/$PR_BRANCH was not found and community PR branch could not be merged into enterprise-master" echo "ERROR: enterprise/$PR_BRANCH was not found and community PR branch could not be merged into enterprise-master"
exit 1 exit 1