Skip to content
Snippets Groups Projects
Commit 15475b3f authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

ci: remove aggregated directory from previous runs


The .oniro-repo-workspace job uses GIT_STRATEGY=none, so CI_PROJECT_DIR
is not cleaned up between jobs. As a consequence, the "aggregated"
repository checkout may be present on job startup, thus upsetting
remaining logic.

Remvoe the aggregated repository before starting the build.

Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent b3002a4f
No related branches found
No related tags found
1 merge request!23ci: remove aggregated directory from previous runs
Pipeline #10375 passed
......@@ -145,7 +145,10 @@ deploy:
name: registry.ostc-eu.org/ostc/oniro/docs-builder:latest
stage: deploy
script:
# We are in the root of the git-repo workspace.
# We are in the root of the git-repo workspace. Because
# .oniro-repo-workspace uses GIT_STRATEGY=none, the workspace is not
# cleaned automatically.
- rm -rf aggregated
- git clone https://user:$CI_ONIRO_AGGREGATED_DOCS_TOKEN@gitlab.eclipse.org/eclipse/oniro-core/oniro-readthedocs-aggregated.git aggregated
- find aggregated -maxdepth 1 -not -path aggregated/.git -not -path aggregated -exec rm -rvf {} \;
- tar -c --dereference -C docs --exclude ./.git --exclude ./.gitlab-ci.yml . | tar -x -C aggregated
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment