From b071b4d65dd14f921e7ebd44c555a95114a25fe3 Mon Sep 17 00:00:00 2001 From: "sebastien.heurtematte" <sebastien.heurtematte@eclipse-foundation.org> Date: Wed, 2 Nov 2022 15:26:42 +0100 Subject: [PATCH] ci: initial PVC. Related to https://gitlab.eclipse.org/eclipse-wg/oniro-wg/products-services-oniro-wg/it-services-oniro-wg/pipelines-architecture-oniro-wg/-/issues/18 Signed-off-by: sebastien.heurtematte <sebastien.heurtematte@eclipse-foundation.org> --- .oniro-ci/build-generic.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.oniro-ci/build-generic.yaml b/.oniro-ci/build-generic.yaml index e526521d..61cdd5ad 100644 --- a/.oniro-ci/build-generic.yaml +++ b/.oniro-ci/build-generic.yaml @@ -131,9 +131,11 @@ - test -n "$CI_ONIRO_RUNNER_PERSISTENT_STORAGE" || ( echo "precondition failed - CI_ONIRO_RUNNER_PERSISTENT_STORAGE is not set" && exit 1 ) - - test -w "$CI_ONIRO_RUNNER_PERSISTENT_STORAGE/$CI_ONIRO_BUILD_CACHE/bitbake" || ( - echo "precondition failed - expected $CI_ONIRO_RUNNER_PERSISTENT_STORAGE/$CI_ONIRO_BUILD_CACHE/bitbake to be writable" - && exit 1 ) + - | + mkdir -p $CI_ONIRO_RUNNER_PERSISTENT_STORAGE/pub/bitbake + mkdir -p $CI_ONIRO_RUNNER_PERSISTENT_STORAGE/private/bitbake + chmod 775 $CI_ONIRO_RUNNER_PERSISTENT_STORAGE/{private,pub} + chmod 775 $CI_ONIRO_RUNNER_PERSISTENT_STORAGE/{private,pub}/bitbake # Log available disk space on the persistent shared disk. - df -h "$CI_ONIRO_RUNNER_PERSISTENT_STORAGE/$CI_ONIRO_BUILD_CACHE/bitbake" - !reference [.workspace, before_script] -- GitLab