1

enter image description hereI have to get the MD5 checksum from the artifactory link:

www.artifactory_company_link/artifactory/webapp/#/artifacts/browse/tree/General/abc.html

I have tried CURL -I artifactory_link. But didn't get the MD5 checksum.

1 Answers1

4

To get the MD5 checksum from command line, you need to use the Artifactory File Info REST API.

So the proper way to get your file's MD5 checksum would be (assuming the General repository here)

curl -s -u<user>:<password> www.artifactory_company_link/artifactory/api/storage/General/abc.html

This will output a big json output of the file's info, including its MD5 checksum. Use jq to get just the checksum

curl -s -u<user>:<password> www.artifactory_company_link/artifactory/api/storage/General/abc.html | jq ".checksums.md5"
Eldad Assis
  • 10,464
  • 11
  • 52
  • 78