Artifactory Checksums User Plugin
July 24, 2017 ยท View on GitHub
This plugin provides additional checksums support to Artifactory.
Features
In addition to the natively supported MD5 and SHA-1, this plugin adds to Artifactory support to the following algorithms:
- SHA-256
- SHA-384
- SHA-512
Installation
To install this plugin:
- Place file
checksums.groovyunder the master Artifactory server${ARTIFACTORY_HOME}/etc/plugins. - Verify in the
${ARTIFACTORY_HOME}/logs/artifactory.logthat the plugin loaded correctly.
Execution
To retrieve the checksum values of an artifact, use the appropriate file extension when requesting the artifact:
- SHA-256:
.sha256 - SHA-384:
.sha384 - SHA-512:
.sha512
The snippet below shows how to retrieve an artifact SHA-512 checksum using the Retrieve Artifact method from the Artifactory REST API:
curl -X GET -v -u user:password "http://localhost:8088/artifactory/<REPO_KEY>/<PATH_TO_ARTIFACT>.sha512"`