[英]How to upload multiple seperate folders and thier contents to a single zip file to JFrog Artifactory using "jf rt upload". ( /Alpha, /Beta, /Gamma)
Given the following folder structure:"/Alpha,/Beta,/Gamma,/Delta, ..."给定以下文件夹结构:“/Alpha,/Beta,/Gamma,/Delta, ...”
Using JFrog CLI how can I upload only the first two folders and thier entire contents.使用 JFrog CLI 如何只上传前两个文件夹及其全部内容。
Ive tried the following using a regular expression:我使用正则表达式尝试了以下操作:
jf rt upload "Alpha|Beta" My-generic-local/My-rep-folder/target.zip --archive zip --dry-run --regexp
[Error]CreateFile Aplha|Beta: The filename, directory name, or volume label syntax is incorrect. [错误]CreateFile Aplha|Beta:文件名、目录名或卷标语法不正确。
You can try File Specs for this purpose.为此,您可以尝试使用 File Specs。
jf rt upload --spec=filespec.json
filespec.json:文件规范.json:
{
"files": [
{
"pattern": "Alpha/",
"target": "My-generic-local/My-rep-folder/target.zip",
"archive": "zip"
},
{
"pattern": "Beta/",
"target": "My-generic-local/My-rep-folder/target.zip",
"archive": "zip"
}
]
}
Learn more about JFrog File Specs:了解有关 JFrog 文件规范的更多信息:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.