Jfrog Artifactory 发布构建信息失败

huangapple go评论60阅读模式
英文:

Jfrog Artifactory Publish Build Info Failure

问题

成功使用以下命令构建图像后(Jfrog CLI + Openshift CLI):

jf rt oc start-build <BuildConfig名称> --server-id=<JFrog CLI配置服务器ID> --repo=<Docker存储库名称> --build-name=<要保存在构建信息中> --build-number=<要保存在构建信息中>

当我尝试发布构建信息时,收到以下权限错误,尽管我使用的是Artifactory中具有高权限的用户。 有谁知道用户需要哪些权限才能发布构建信息以及如何更改这些权限?

英文:

After successfully building my image using the following command (Jfrog CLI + Openshift CLI):

jf rt oc start-build <BuildConfig name> --server-id=<JFrog CLI config server ID> --repo=<Docker repository name> --build-name=<to be saved in the build-info> --build-number=<to be saved in the build-info>

When I try to publish the build info, I receive the following permission error, even though I'm using a highly privileged user within Artifactory. Does anyone know which permissions are required for a user to be able to publish build info and how to change them?

Jfrog Artifactory 发布构建信息失败

答案1

得分: 1

403禁止错误表示在JFrog CLI中配置的用户没有足够的权限来部署构建。要部署构建,用户应该具有部署权限。我们可以通过以下步骤启用此选项:

  1. 转到“管理” -> “用户管理”,然后选择为JFrog CLI配置的用户。
  2. 在“用户权限”部分中选择 - 构建,然后单击权限目标(例如:Anything)。
  3. 在此处,在“用户”部分下选择CLI中配置的用户。
  4. 选择用户构建并启用“部署”权限,然后保存。参考此 截图
    现在尝试再次发布构建,它将正常工作。

有关权限的更多信息,请参阅此 文档

英文:

A 403 forbidden error indicates that a user that has been configured in JFrog CLI does not have enough permissions to deploy builds.
In order to deploy a build the user should have deploy permissions. We can enable this option by following the below steps:-

  1. Navigate to Administration -> User Management, and select the user configured for JFrog CLI.
  2. In the User Permission section select - builds, and click on the Permission target(ex:- Anything).
  3. In this, select the User(configured in CLI) under the Users section.
  4. Select the Users build and enable the 'deploy' permissions and save it. Refer to this screenshot .
    Now try to publish the builds again, it will work.

For more information on Permissions refer to this documentation.

huangapple
  • 本文由 发表于 2023年3月20日 22:50:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/75791798.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定