title: How to download the artifact md5 checksum from Jenkins pipeline artifactory plugin
body: <p>When I download a gz file from artifactory in Jenkins pipeline, I would like to verify the md5 checksum to validate the download. While I can see the checksum in artifactory UI, I am not finding a way to download the same in Jenkins pipeline.</p>
  
  <p>I am using the following piece of code to download and it downloads fine.</p>
  
  <pre><code>            script {
                  def server = Artifactory.server '&lt;myserver&gt;'
                  def downloadSpec = """{
                    "files": [
                      {
                        "pattern": "&lt;my artifact&gt;.tar.gz",
                        "target": "tmp/"
                      }
                   ]
                  }"""
                  server.download(downloadSpec)
              }
  </code></pre>
  
  <p>When I upload the  and the .md5 , the artifactory uses the md5 to just validate against its own checksum but does not store the md5 as a separate file.</p>
  
  <p>I have perused the plugin documentation at <a href="https://www.jfrog.com/confluence/display/RTF/Jenkins+Artifactory+Plug-in" rel="nofollow noreferrer">https://www.jfrog.com/confluence/display/RTF/Jenkins+Artifactory+Plug-in</a> and the REST API <a href="https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API" rel="nofollow noreferrer">https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API</a> and neither describes a way to donwload the checksum.</p>
  
  <p>Appreciate any help</p>