From a59c8e15648b9d643c59fb229751a151e3eb1c54 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <andrei.gherzan@huawei.com> Date: Wed, 17 Nov 2021 11:37:01 +0000 Subject: [PATCH] ci/build-generic.yaml: Pull LFS blobs for fork remote explicitly This is needed due to the custom setup we do with a additional fork remote for the incoming repository. Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> --- .oniro-ci/build-generic.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.oniro-ci/build-generic.yaml b/.oniro-ci/build-generic.yaml index 630209ab..518f7a2d 100644 --- a/.oniro-ci/build-generic.yaml +++ b/.oniro-ci/build-generic.yaml @@ -52,6 +52,9 @@ fi; echo "CI: Switching $CI_ONIRO_GIT_REPO_PATH to $CI_COMMIT_SHA"; ( cd "$CI_ONIRO_GIT_REPO_PATH" && git checkout "$CI_COMMIT_SHA" ); + if [ -n "$CI_MERGE_REQUEST_SOURCE_PROJECT_URL" ]; then + ( cd "$CI_ONIRO_GIT_REPO_PATH" && git lfs pull incoming-merged ); + fi; fi # Some of the repo projects come with LFS configuration (that repo refuses -- GitLab