英文:
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?
答案1
得分: 1
403禁止错误表示在JFrog CLI中配置的用户没有足够的权限来部署构建。要部署构建,用户应该具有部署权限。我们可以通过以下步骤启用此选项:
- 转到“管理” -> “用户管理”,然后选择为JFrog CLI配置的用户。
- 在“用户权限”部分中选择 - 构建,然后单击权限目标(例如:Anything)。
- 在此处,在“用户”部分下选择CLI中配置的用户。
- 选择用户构建并启用“部署”权限,然后保存。参考此 截图 。
现在尝试再次发布构建,它将正常工作。
有关权限的更多信息,请参阅此 文档。
英文:
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:-
- Navigate to Administration -> User Management, and select the user configured for JFrog CLI.
- In the User Permission section select - builds, and click on the Permission target(ex:- Anything).
- In this, select the User(configured in CLI) under the Users section.
- 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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论