#1760  How to cache pnpm .agent is kvm
Closed
hzgotb opened 2 months ago

如标题

Robin Shen commented 2 months ago

能说清楚点吗?

Robin Shen changed title 2 months ago
Previous Value Current Value
怎么缓存 pnpm .agent是kvm
How to cache pnpm .agent is kvm
hzgotb commented 2 months ago

哦哦。我构建 node 项目,用的是 pnpm 这个包管理器。agent是允许在虚拟机上的。每次构建都会重新下载以来而不是使用缓存。我现在的缓存时参考 pnpm 官网的默认位置,就是 /root/.pnpm 。但是不起作用

Robin Shen commented 2 months ago

创建一个示例项目来说明问题吧,我都不知道你怎么配置的。

hzgotb commented 2 months ago

image.png

hzgotb commented 2 months ago

用docker executor构建镜像

Robin Shen commented 2 months ago

cache机制改了,升级到10.1.6然后按下面的教程重新配置:

https://docs.onedev.io/tutorials/cicd/job-cache

Robin Shen changed state to 'Closed' 2 months ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
onedev/server#1760
Please wait...
Page is in error, reload to recover