From fd5c897f3f115a1a107e106f9b0fc0fbd16d28d3 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <andrei.gherzan@huawei.com> Date: Tue, 16 Nov 2021 13:22:17 +0000 Subject: [PATCH] ci/build-generic.yaml: Pull LFS blobs for all git repos Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> --- .oniro-ci/build-generic.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.oniro-ci/build-generic.yaml b/.oniro-ci/build-generic.yaml index d12d47ed..12807864 100644 --- a/.oniro-ci/build-generic.yaml +++ b/.oniro-ci/build-generic.yaml @@ -54,6 +54,14 @@ ( cd "$CI_ONIRO_GIT_REPO_PATH" && git checkout "$CI_COMMIT_SHA" ); fi + # Some of the repo projects come with LFS configuration (that repo refuses + # to initialize). See: + # https://gerrit-review.googlesource.com/c/git-repo/+/83130/. As per this + # limitation, the repositories using LFS blobs need to be pulled manually. + # Now that repo synced all projects and we handled fork-based merge + # requests, we can pull all the LFS blobs. + - find -type d -name .git -execdir git lfs pull \; + script: # Reload the value of SCRATCH_DIR set in the before_script phase. Those run # in separate shell processes and do not share environment variables. -- GitLab