Chef :: Exceptions :: InvalidRemoteFileURI-nil不是remote_file的有效`source`参数。 “ source”必须是绝对URI或URI数组

问题描述 投票:1回答:1

我正在尝试使用remote_file从artiifactory下载工件。我在属性中具有url的位置。我面临以下错误。

remote_file "#{Chef::Config['file_cache_path']}/test.zip" do
  source node['build']['url']
  checksum node['build']['checksum']
end

需要任何帮助吗?

chef artifactory chef-recipe
1个回答
0
投票

您的source资源的remote_file参数没有有效值。您尝试访问的属性node['build']['url']设置不正确。确保将其设置为绝对URI或例外提到的URI数组。为了进行测试,可以通过运行chef-shell -z命令打开Chef Shell,并可以打印node['build']['url']

的值
© www.soinside.com 2019 - 2024. All rights reserved.