【发布时间】:2022-11-24 05:52:22
【问题描述】:
作为我的 CI/CD 的一部分,我们管道的一部分是将工件上传到我们本地的 Artifactory 服务器以进行部署 有时会随机弹出此消息(估计是一周未使用)并使管道失败
09:23:16 [Error] Server response: 401 Unauthorized
09:23:16 {
09:23:16 "errors": [
09:23:16 {
09:23:16 "status": 401,
09:23:16 "message": "Token failed verification: expired"
09:23:16 }
09:23:16 ]
09:23:16 }
09:23:16 [Error] Server response: 401 Unauthorized
09:23:16 {
09:23:16 "errors": [
09:23:16 {
09:23:16 "status": 401,
09:23:16 "message": "Token failed verification: expired"
09:23:16 }
09:23:16 ]
09:23:16 }
在我刚刚登录到服务器并注销后,它又回到了正常消息:
11:07:49 [Info] Searching items to download...
11:07:49 [Info] [Thread 2] Downloading Repo/xxx.tar.gz
11:07:49 [Info] [Thread 0] Downloading Repo/yyy.tar.gz
11:07:49 [Info] [Thread 2] [2]: 206 Partial Content...
11:07:49 [Info] [Thread 0] [0]: 206 Partial Content...
11:07:49 [Info] [Thread 2] [0]: 206 Partial Content...
11:07:49 [Info] [Thread 2] [1]: 206 Partial Content...
11:07:49 [Info] [Thread 0] [1]: 206 Partial Content...
11:07:49 [Info] [Thread 0] [2]: 206 Partial Content...
11:07:49 [Info] [Thread 2] Done downloading.
11:07:49 [Info] [Thread 0] Done downloading.
11:07:49 {
11:07:49 "status": "success",
11:07:49 "totals": {
11:07:49 "success": 2,
11:07:49 "failure": 0
11:07:49 }
11:07:49 }
我使用来自我们服务器的 API 密钥通过 jfrog-cli 连接到 Artifactory 服务器
有什么建议可以使它发生吗?
【问题讨论】:
-
您是通过标志还是使用配置(jfrog config add)传递 API 密钥?你的 CLI 版本是多少?
-
尝试了两种方式(在带有 jfrog 配置添加的 VM 中或在带有配置文件的容器中),jfrog 版本 2.8.0
标签: linux artifactory jfrog-cli