title: Publish project files from Jenkins using Artifactory plugin "Include Patterns"
body: <p>In Jenkins (2.7), I've got a simple Maven 3 Java project. It builds and publishes the standard project JAR to Artifactory using Jenkins Artifactory plugin; no issues. </p>
  
  <p><strong>Goal</strong></p>
  
  <p>Now, I need to publish to Artifactory an arbitrary file, <code>deploycfg.yml</code>, alongside the JAR; not in it. So from a repository perspective, it should look like this:</p>
  
  <pre><code>com/acme/sbgroov/1.0.0.7/
  -- sbgroov-1.0.0.7.jar
  -- sbgroov-1.0.0.7.md5
  -- sbgroov-1.0.0.7.sha
  -- deploycfg.yml       &lt;---publish this to Artifactory too!
  </code></pre>
  
  <p><strong>Tried</strong></p>
  
  <p>I've modified the pom to move <code>deploycfg.yml</code> to <code>/target</code> upon building, then tried different configurations for <code>Include Patterns</code> in the Jenkins Artifactory plugin to pick up the files for publishing:</p>
  
  <pre><code>*.jar *.yml
  **/*.jar **/*.yml
  *.jar deploycfg.yml
  </code></pre>
  
  <p>The JAR gets published to Artifactory, but not <code>deploycfg.yml</code>. Tried putting the yml file in <code>/target/maven-archiver</code> instead of <code>/target</code>, but that didn't work either. Not sure what else to do at this point, perhaps the starting point for <code>Include Patterns</code> is not what I think it is, <code>/target</code>?  </p>
  
  <p><a href="https://i.stack.imgur.com/kEzA7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kEzA7.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/R8VBQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R8VBQ.png" alt="enter image description here"></a></p>