如何添加属性集值“实习”自动到文法7.x上的每个新存储库?

发布于 2025-01-22 00:22:15 字数 568 浏览 2 评论 0 原文

我在Actifactory 7实例中创建了属性设置的机密性级别。我的属性Ser包含所有值(“”Öffentlich,“ Intern”和“ Vertraulich”)的所有值。

我将值级别的“实习”分配给了我的旧存储库。但是现在我想使用“实习生”自动化此属性集,以便将“实习”属性集自动添加到每个新存储库中。我读了JFrog文档。关于财产集,那里什么也没有找到。

但是我宁愿将来会自动为新存储库添加“实习生”属性。 我添加了一些图片来向您展示,我已经做了什么。

I created the property set confidentiality level in Actifactory 7 instance. My property ser contains all values (""öffentlich,"intern" and "vertraulich") described as a selection list.

I assigned the value level "intern" as default manually to my old repositories.But now I want to automate this property set with "intern" so that the "intern" property set is automatically added to each new repository.I readed the Jfrog documentation about property set and found nothing there.

But I'd rather add the "intern" property for the new repositories automatically in the future.
I added some pictures to show you ,what I already did.

enter image description here
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

柳若烟 2025-01-29 00:22:15

开放树木的景观>导航到您的存储库>打开属性选项卡>选择/添加属性>检查标记递归。 (检查后,将属性添加到选定的文件夹,以及当前选择下的所有工件,文件夹和子文件夹)。附加了图像。

Open Tree view of Artifacts > navigate to your repository > Open Properties Tab > Select/add properties > Check mark Recursive. (When checked, the property will be added to the selected folder and to all of the artifacts, folders and sub-folders under the current selection). Attached the image.

enter image description here

残月升风 2025-01-29 00:22:15

您可以使用在这里

You can use the REST API to create a repository and while creating the repository, you can pass the property sets data as mentioned here.

满天都是小星星 2025-01-29 00:22:15

通过API,您可以尝试以下命令:
curl -h”授权:持有人 令牌 put https:/// artifactoryurl /artifactory/api/api/storage/< em> 存储库 / buildName / versionDeployed ?properties = < strong> = 实习生&amp;递归= 1

注意:
递归= 0(非恢复)
递归= 1(递归属性)

Through API you can try the below command:
curl -H "Authorization: Bearer token put https://artifactoryurl/artifactory/api/storage/repository/Buildname/versionDeployed?properties=Builtby=intern&recursive=1

Note:
recursive = 0 (Non-recursive)
recursive = 1 (recursive property apply)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文