如何使用 Jfrog CLI 将工件上传到 Jfrog Artifactory? [英] How to upload an artifact to Jfrog Artifactory using Jfrog CLI?
本文介绍了如何使用 Jfrog CLI 将工件上传到 Jfrog Artifactory?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用 Jfrog Artifactory 的 CLI
我需要上传 .p2 插件,我有两个选择:
I need to upload .p2 plugins and I have two options:
- 上传 .zip 并将其部署为 Bundle Artifact
- 上传包含所有子文件夹和数据的未压缩文件夹.
我正在尝试使用以下命令上传包含所有子文件夹和数据的未压缩文件夹:
I'm trying to upload the uncompressed folder with all the subfolders and data using this command:
jfrog rt upload --include-dirs=true ${bamboo.build.working.directory}/unzip/${bamboo.public.name-update-site}/* p2-release-local/${bamboo.public.name-update-site}/
但问题是子文件夹是空的.
But the problem is that the subfolders are empty.
我也尝试使用这个命令:
Also I try to use this command:
jfrog rt upload --flat=false ${bamboo.build.working.directory}/unzip/${bamboo.public.name-update-site}/* p2-release-local/${bamboo.public.name-update-site}/
此命令上传包含所有数据的所有子文件夹,但路径不正确,因为:
This command upload all the subfolders with all the data but the path isn't correct because is:
/name-update-site/datos/agents-home/xml-data/build-dir/PREDEL-RELPLU-JOB1/unzip/name-update-site
变量${bamboo.build.working.directory}的内容是
The content of the variable ${bamboo.build.working.directory} is
/datos/agents-home/xml-data/build-dir/PREDEL-RELPLU-JOB1/
日志信息:
INFO: Listing Bamboo directory
prueba-update-site.zip
unzip
INFO: Listing files from unzip folder
prueba-update-site
INFO: Listing files from custom folder
artifacts.jar
content.jar
features
plugins
site.xml
uninstall_fortify_plugins.cmd
有什么帮助吗?
谢谢.
推荐答案
已解决!
解决办法是:
- 解压缩工件 .zip 存档
使用以下命令上传:
- Unzip the artifact .zip archive
Upload with this command:
jfrog rt upload --flat=false "${bamboo.public.name-update-site}/*" p2-release-local/
谢谢.
这篇关于如何使用 Jfrog CLI 将工件上传到 Jfrog Artifactory?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文