CLI将工件上传到Jfrog

CLI将工件上传到Jfrog

本文介绍了如何使用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.

我也尝试使用此命令:

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

有帮助吗?

谢谢.

推荐答案

已解决!

解决方案是:

  1. 解压缩工件.zip存档
  2. 使用此命令上传:

  1. Unzip the artifact .zip archive
  2. Upload with this command:

jfrog rt upload --flat=false "${bamboo.public.name-update-site}/*" p2-release-local/

谢谢.

这篇关于如何使用Jfrog CLI将工件上传到Jfrog Artifactory?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 02:54