我正在尝试使用remote_file从artiifactory下载工件。我在属性中具有url的位置。我面临以下错误。
remote_file "#{Chef::Config['file_cache_path']}/test.zip" do
source node['build']['url']
checksum node['build']['checksum']
end
需要任何帮助吗?
您的source
资源的remote_file
参数没有有效值。您尝试访问的属性node['build']['url']
设置不正确。确保将其设置为绝对URI或例外提到的URI数组。为了进行测试,可以通过运行chef-shell -z
命令打开Chef Shell,并可以打印node['build']['url']