我在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.


发布评论
评论(3)
开放树木的景观>导航到您的存储库>打开属性选项卡>选择/添加属性>检查标记递归。 (检查后,将属性添加到选定的文件夹,以及当前选择下的所有工件,文件夹和子文件夹)。附加了图像。
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.
您可以使用在这里。
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.
通过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)