Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持用户清理构建机缓存 #8469

Closed
lunaazhang opened this issue Mar 9, 2023 · 1 comment
Closed

支持用户清理构建机缓存 #8469

lunaazhang opened this issue Mar 9, 2023 · 1 comment
Labels
kind/enhancement 功能改进特性

Comments

@lunaazhang
Copy link

用户在执行流水线的时候,执行出现问题时,会出现定位到是缓存问题的情况。
基于以上问题,蓝盾在流水线中提供一个清理构建机缓存的接口:
1)包括公共构建机和私有构建机;
2)清理工作空间中的缓存,即代码以及编译的产物等等;
3)清理的缓存中不包括环境依赖的缓存,即构建容器拉起时部分路径的挂载。

@lunaazhang lunaazhang added the kind/enhancement 功能改进特性 label Mar 9, 2023
@irwinsun
Copy link
Member

irwinsun commented May 23, 2024

shell插件
rm -rf ${{ci.workspace}}
是否可以解决?

清理还是比较敏感和高危的操作, 平台无法直接控制构建机在机器上做任何的操作。 都是由构建机自下而上的请求平台获取到构建任务来执行。 所有一切只能通过流水线的任务方式运行, 因此像这类问题,只要你加一个插件,清理你想要的目录即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement 功能改进特性
Projects
None yet
Development

No branches or pull requests

2 participants