title: Cannot download latest artifact using artifactory plugin or jfrog cli with "build" property in file spec
body: <p>My artifactory [Generic] repo structure is like this:</p>
  
  <p>org/component/baseRev/branch/</p>
  
  <p>The build job that runs in jenkins produces a zip artifact which is uploaded to this path using artifactory plugin with a file name: component-fileItegRev.zip where fileItegRev is the build number.
  So I end up with something like this in my repo:</p>
  
  <pre><code>.../branch/
  .....component-120.zip
  .....component-121.zip
  .....component-122.zip
  .....component-123.zip
  </code></pre>
  
  <p>The other pipeline then is trying to download the latest artifact from the abovementioned folder using artifactory plugin in jenkins and the file spec like this:</p>
  
  <pre><code>{
      "files": [
          {
              "pattern": "org/component/baseRev/branch/",
              "target": "Download\\",
              "build": "buildName",
              "explode": "true",
              "flat" : "true"
          }
          ]
      }
  </code></pre>
  
  <p>The <a href="https://www.jfrog.com/confluence/display/RTF/Using+File+Specs" rel="nofollow noreferrer">file spec documentation</a> in Artifactory states that if I specify build name without build number, then the latest will be used to pull the artifact. This is not happening. </p>
  
  <p>I verified that if I specify build property in the form of: </p>
  
  <pre><code>"build": "buildName/123"
  </code></pre>
  
  <p>it will find and download the zip with that version in the file name. I also tried to explicitly specify </p>
  
  <pre><code>"build": "buildName/LATEST"
  </code></pre>
  
  <p>which also doesn't work. What am I doing wrong? </p>
  
  <p>I've also tried using jfrog cli download command using this spec file and it also couldn't find latest. I was able to find latest file using jfrog cli and</p>
  
  <pre><code>"sortBy": ["created"],
  "sortOrder": "desc",
  "limit": 1
  </code></pre>
  
  <p>params in the spec (as described <a href="https://www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory#CLIforJFrogArtifactory-UsingFileSpecs" rel="nofollow noreferrer">here</a>), but I'm still wondering why "build" property of the file spec doesn't work as described in their documentation.</p>