Use the Artifactory Plugin in Jenkins to conditionally download files from artifactory
<p>How can I choose a different download spec for the Jenkins Artifactory plugin based on the value of a build job string parameter?</p>

<p>For a given value of the string parameter I want to download a folder from artifactory, and for a different value of the string parameter I want to download a different folder from artifactory.  </p>

<p>I'm trying to get these folders directly from artifactory because they contain build output from a different project that my build needs to use and change frequently, I can't just check them into the SCM for my build, but must have the current versions at build time.</p>

<p>I've looked at the pages for the <a href="https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin" rel="nofollow noreferrer">Jenkins Artifactory Plugin</a> and at the <a href="https://www.jfrog.com/confluence/display/RTF" rel="nofollow noreferrer">Jfrog Artifactory user guide</a> but I haven't found anything on how to do this using the plugin.</p>

<p>I'm using a freestyle build with the Generic-Artifactory Integration option.</p>

<p>Jenkins version: 1.651.3<br>
Artifactory Plugin Version: 2.8.1<br>
Artifactory Version 4.6.1</p>