lib/buildbox/artifact/collector.rb in buildbox-0.6.beta3 vs lib/buildbox/artifact/collector.rb in buildbox-0.6
- old
+ new
@@ -28,10 +28,10 @@
absolute_path = File.expand_path(file, @build_directory)
copy_to_path = File.join(tmpdir, file)
if File.file?(absolute_path)
- artifacts << Artifact.create(file, copy_to_path)
+ artifacts << Artifact.create(@glob, file, copy_to_path, absolute_path)
FileUtils.mkdir_p(File.dirname(copy_to_path))
FileUtils.cp(absolute_path, copy_to_path)
end