对于本地存储库,它运行得非常好。 我使用https://jfrog.com/knowledge-base/is-there-a-way-to-rename-a-repository/
中的说明但是,当repos是远程的时,会出现以下错误:
1)远程回购名称
curl -k -X POST -u admin "https://myartifactory/artifactory/api/move/generic-dev?to=/generic-release/
结果:
"messages" : [ {
"level" : "ERROR",
"message" : "Failed to copy from src=generic-dev to target=/generic-release/: Attempt to lock 'generic-dev:' with repository 'generic-dev-cache"
}, {
"level" : "WARNING",
"message" : "Source repository path is empty, path set to root"
2)使用缓存:
curl -k -X POST -u admin "https://myartifactory/artifactory/api/move/generic-dev-cache?to=/generic-release-cache/
结果:
[Error] Artifactory response: 409 Conflict
{
"messages": [
{
"level": "ERROR",
"message": "Failed to copy from src=generic-dev-cache/taf to target=generic-release-cache/: Target repository generic-release-cache is a cache repository. copy to cache repositories is not allowed."
}
]
}
我正在使用Artifactory Professional 5.4.6
如果您知道解决方案,请提供帮助。
致以最诚挚的问候,
马立克