class Artifactory::Resource::Artifact

def upload_checksum(repo, remote_path, type, value)

Returns:
  • (true) -

Parameters:
  • value (String) --
  • type (Symbol) --
  • () --

Other tags:
    Example: Set an artifact's md5 -
def upload_checksum(repo, remote_path, type, value)
  file = Tempfile.new("checksum.#{type}")
  file.write(value)
  file.rewind
  endpoint = File.join(url_safe(repo), "#{remote_path}.#{type}")
  client.put(endpoint, file)
  true
ensure
  if file
    file.close
    file.unlink
  end
end