title: Jenkins-Groovy - Jfrog Artifactory - getting exception while downloading artifacts Calculated MD5 checksum is different from original
body: <p>I am working with Jenkins - Groovy Script, uploading and downloading artifacts to and from jfrog artifactory.</p>
  
  <p>Below is the code for upload and download zip folder.</p>
  
  <pre><code> stage("Upload Artifact to Jfrog"){
      def server = Artifactory.server 'JfrogTAArtifactory'
        def uploadSpec = """{
        "files": [
          {
            "pattern": "${env.WORKSPACE}\\${artifactsfoldername}\\API-${env.BUILD_NUMBER}.zip",
            "target": "internal-repo/folderName/subFolder/",
            "props": "type=zip;status=ready"
  
          }
       ]
      }"""
      def buildInfo =  server.upload(uploadSpec)
      server.publishBuildInfo(buildInfo)
    }
  
  stage("Download Artifacts"){
        def server = Artifactory.server 'JfrogTAArtifactory'
        File folder = new File(downloadArtifactsPath)
        FileUtils.cleanDirectory(folder)
  
        def downloadSpec = """{
           "files": [
            {
                "pattern": "internal-repo/folderName/subFolder/API-${env.BUILD_NUMBER}.zip",
                "target": "${downloadArtifactsPath}/",
                "explode":"true",
                "flat": "true"
              }
           ]
          }"""
       def buildInfo = server.download(downloadSpec)
        server.publishBuildInfo(buildInfo)
    }
  </code></pre>
  
  <p>When I try to download I am getting the following exception </p>
  
  <pre><code>java.io.IOException: Calculated MD5 checksum is different from original, Original: '09bb61772231822ebd37a2751c818f60' Calculated: '7e32b3f7e8149fbc8013fd7992f345e5'
  at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.validateMd5Checksum(DependenciesDownloaderHelper.java:439)
  </code></pre>
  
  <p>Can any one help me?. I am new to both jenkins and Jfrog</p>