升级到版本 jfrog 1.38.0 后,尝试将tgz文件上传到工件时出现以下错误:
09:48:31 > Task :addRepo
09:48:31 >>> Adding repo to push charts
09:48:32
09:48:32 > Task :publish FAILED
09:48:32 >>> Pushing charts to repo
09:48:32 >>> Pushing 'tag-service-1.11.4.tgz'
09:48:32 [Error] Artifactory response: 400 Bad Request
09:48:32 {
09:48:32 "error": "invalid_request",
09:48:32 "error_description": "User token:**** can only create user token(s) for themselves (requested: ****)"
09:48:32 }
版本为 1.26.2 的版本,没有错误。
这是我们的相关代码
project.exec {
commandLine 'jfrog', 'rt', 'config', "--url=${artifactory_url}",
"--user=${artifactory_user}", "--password=${artifactory_password}",
'--enc-password=false', 'artifactory'
}
project.exec {
workingDir project.projectDir.path
commandLine 'jfrog', 'rt', 'u', chart.name, "${helm_chart_repo}"
}
有什么想法吗?
感谢@EyalBenMoshe,我添加了标志-basic-auth-only 来解决问题
答案 0 :(得分:1)
JFrog CLI的1.38.1版包含针对此问题的修复程序。