lib/cicd/builder/manifest/mixlib/repo/artifactory.rb in manifest-builder-0.5.7 vs lib/cicd/builder/manifest/mixlib/repo/artifactory.rb in manifest-builder-0.5.8
- old
+ new
@@ -118,11 +118,18 @@
manifest.dup.each do |mod, man|
manifest_data = ''
man.each do |k, v|
manifest_data += "#{k}=#{v}\n"
end
- data = {module: mod, data: manifest_data, version: @vars[:build_ver], build: @vars[:build_num], properties: @properties_matrix}
+ data = {
+ name: "#{mod}-manifest",
+ module: "#{mod}-manifest",
+ data: manifest_data,
+ version: @vars[:build_ver],
+ build: @vars[:build_num],
+ properties: @properties_matrix
+ }
# tempArtifactFile("#{mod}-manifest", data)
data[:file] = Dir::Tmpname.create("#{mod}-manifest") do |tmpnam, n, opts|
mode = File::RDWR|File::CREAT|File::EXCL
perm = 0600
@@ -130,10 +137,9 @@
end + '.properties'
IO.write(data[:file], data[:data])
data[:temp] = false
data[:sha1] = Digest::SHA1.file(data[:file]).hexdigest
data[:md5] = Digest::MD5.file(data[:file]).hexdigest
- data[:name] = "#{mod}-manifest"
@vars[:artifacts] << {
key: "#{mod}-manifest",
data: data.dup,
}
# noinspection RubyStringKeysInHashInspection