Creating artifacts in jenkins
<p>I have been tasked with looking into using Jenkins as a build server. So far I have managed to pull a project from git, restore the Nuget packages, build the project and run the unit tests. However I am struggling to find out how to generate the artifact.</p>

<p>The way the business would like to have the build server generate a zip file to a directory on the build server or a remote server for the systems team then to pick up and deploy to the relevant location. E.g. given a windows service project the built bin directory would be zipped up and put in the relevant artifact directory.</p>

<p>I thought that in order to do this I add an <code>archive the artifacts</code> post-build action. However I am getting the below error:</p>

<pre><code>‘Watchdog.WinService.Monitor/bin/Release/*.zip’ doesn’t match anything: 
‘Watchdog.WinService.Monitor’ exists but not 
‘Watchdog.WinService.Monitor/bin/Release/*.zip’
</code></pre>

<p>If I look in the workspace for this project I can browse to the bin directory and see all the files so I unsure what I have done wrong.</p>

<p>Can someone please let me know if what I am trying to accomplish is possible, and also if our approach to using Jenkins is correct?</p>