tag:help.appveyor.com,2012-11-13:/discussions/problems/892-no-artifacts-being-created-with-ymlAppVeyor: Discussion 2018-08-25T01:50:24Ztag:help.appveyor.com,2012-11-13:Comment/349522232014-10-15T06:05:08Z2014-12-18T23:44:29ZNo artifacts being created with yml<div><p>I have a yml that I am trying to get building my project
correctly. The project builds, but not artifacts are being created.
I do get two artifacts when I use publish_wap: true in the build
block (I have two web projects in the solution), but nothing when I
try to use the artifacts block. Here is my yml. I have one solution
with two web projects and a number of other class library projects.
Any thoughts on why artifacts are not being created? Attached is
the latest log as well.</p>
<p>#---------------------------------#</p>
<h1><a href="#general-configuration" name="general-configuration"
class="anchor" id="general-configuration"></a>general
configuration</h1>
<p>#---------------------------------#</p>
<p>version: 1.0.{build}</p>
<p>skip_tags: true</p>
<h1><a href=
"#skipping-commits-with-particular-message-or-from-user" name=
"skipping-commits-with-particular-message-or-from-user" class=
"anchor" id=
"skipping-commits-with-particular-message-or-from-user"></a>Skipping
commits with particular message or from user</h1>
<h1><a href="#skip_commits-" name="skip_commits-" class="anchor"
id="skip_commits-"></a>skip_commits:</h1>
<h1><a href=
"#message-created-png-jpg-jpeg-bmp-gif-regex-for-matching-commit-message"
name=
"message-created-png-jpg-jpeg-bmp-gif-regex-for-matching-commit-message"
class="anchor" id=
"message-created-png-jpg-jpeg-bmp-gif-regex-for-matching-commit-message">
</a>message: /Created.*.(png|jpg|jpeg|bmp|gif)/ # Regex for
matching commit message</h1>
<h1><a href=
"#author-john-commit-author-39-s-username-name-email-or-regexp-maching-one-of-these-"
name=
"author-john-commit-author-39-s-username-name-email-or-regexp-maching-one-of-these-"
class="anchor" id=
"author-john-commit-author-39-s-username-name-email-or-regexp-maching-one-of-these-">
</a>author: John # Commit author's username, name, email or regexp
maching one of these.</h1>
<p>#---------------------------------#</p>
<h1><a href="#environment-configuration" name=
"environment-configuration" class="anchor" id=
"environment-configuration"></a>environment configuration</h1>
<p>#---------------------------------#</p>
<p>os: Windows Server 2012</p>
<p>clone_folder: c:\projects\source</p>
<p>#---------------------------------#</p>
<h1><a href="#build-configuration" name="build-configuration"
class="anchor" id="build-configuration"></a>build
configuration</h1>
<p>#---------------------------------#</p>
<h1><a href=
"#build-platform-i-e-x86-x64-any-cpu-this-setting-is-optional-"
name="build-platform-i-e-x86-x64-any-cpu-this-setting-is-optional-"
class="anchor" id=
"build-platform-i-e-x86-x64-any-cpu-this-setting-is-optional-"></a>build
platform, i.e. x86, x64, Any CPU. This setting is optional.</h1>
<p>platform: Any CPU</p>
<h1><a href="#configuration-debug" name="configuration-debug"
class="anchor" id="configuration-debug"></a>configuration:
Debug</h1>
<p>#build: #project: Source/MySolution.sln # path to Visual Studio
solution or project #publish_wap_xcopy: true # package Web
Application Projects (WAP) for XCopy deployment #publish_wap: true
# package Web Application Projects (WAP) for Web Deploy #verbosity:
minimal</p>
<p>#---------------------------------#</p>
<h1><a href="#artifacts-configuration" name=
"artifacts-configuration" class="anchor" id=
"artifacts-configuration"></a>artifacts configuration</h1>
<p>#---------------------------------#</p>
<p>artifacts:<br>
- path: Deployments\MySolution_Deployment.zip name:
MySolution_Deployment</p>
<p>#---------------------------------#</p>
<h1><a href="#deployment-configuration" name=
"deployment-configuration" class="anchor" id=
"deployment-configuration"></a>deployment configuration</h1>
<p>#---------------------------------#</p>
<p>deploy: off</p></div>solomontag:help.appveyor.com,2012-11-13:Comment/349522232014-10-15T06:11:32Z2014-10-15T06:11:32ZNo artifacts being created with yml<div><p>So, the <code>path</code> in <code>artifacts</code> section is
<em>relative</em> path. Make sure that zip file exists after build
phase. You can try listing the contents of <code>Deployments</code>
folder by adding:</p>
<pre>
<code>after_build:
- dir Deployments</code>
</pre>
<p>to make sure the file is there.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/349522232014-11-18T21:53:51Z2014-11-18T21:53:51ZNo artifacts being created with yml<div><p>sorry to hijack. is there an after_package_artifact event?</p>
<p>the after_build occurs first, before artifacts are generated
from what I can tell.</p></div>kennydusttag:help.appveyor.com,2012-11-13:Comment/349522232014-11-19T00:18:38Z2014-11-19T00:18:38ZNo artifacts being created with yml<div><p>There is a number of hooks at the end of build:</p>
<pre>
<code># on successful build
on_success:
- do something
# on build failure
on_failure:
- do something
# after build failure or success
on_finish:
- do something</code>
</pre></div>Feodor Fitsner