tag:help.appveyor.com,2012-11-13:/discussions/problems/40-build-artifact-zip-file-not-getting-uploaded-to-s3AppVeyor: Discussion 2018-10-19T08:16:28Ztag:help.appveyor.com,2012-11-13:Comment/299229212013-11-11T20:37:40Z2013-11-11T20:37:40ZBuild Artifact zip file not getting uploaded to S3<div><p>Hi Dan,</p>
<p>What do you have in <strong>Artifact path template</strong>
field on Packaging tab of project settings?</p>
<p>Is that artifact part of automatic VS.NET solution artifacts or
it's a custom one specified on Packaging tab?</p>
<p>Does it push that artifact for different storage type
(AppVeyor's built-in or Azure blob)?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/299229212013-11-11T20:58:58Z2013-11-11T20:58:59ZBuild Artifact zip file not getting uploaded to S3<div><p>artificat template path:</p>
<hr></div>Dan Meltontag:help.appveyor.com,2012-11-13:Comment/299229212013-11-11T21:03:49Z2013-11-11T21:03:49ZBuild Artifact zip file not getting uploaded to S3<div><p>Missed a picture?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/299229212013-11-11T21:14:55Z2013-11-11T21:14:56ZBuild Artifact zip file not getting uploaded to S3<div><p>artifact template:<br>
{project}{version}{artifact}</p>
<p>Is that artifact part of automatic VS.NET solution artifacts or
it's a custom one specified on Packaging tab?</p>
<p>I'm using a publish profile, and it looks like I'm maybe
mis-specifying the variables in the templates?:</p>
<p>Done executing task "MakeDir".<br>
Task "CopyPipelineFiles"<br>
Copying obj\x86\Release\Package\PackageTmp\Alerts.aspx to
d:\Builds\0xq6dr1oie\src\$TempFolder\Alerts.aspx. Copying
obj\x86\Release\Package\PackageTmp\Apply.aspx to
d:\Builds\0xq6dr1oie\src\$TempFolder\Apply.aspx. Copying
obj\x86\Release\Package\PackageTmp\ATS.aspx to
d:\Builds\0xq6dr1oie\src\$TempFolder\ATS.aspx.</p>
<hr>
<p>From: Dan Melton<br>
Sent: Monday, November 11, 2013 12:50 PM<br>
To: Feodor Fitsner<br>
Subject: RE: Build Artifact zip file not getting uploaded to S3
[Problems #40]</p>
<p>artificat template path:</p>
<hr></div>Dan Meltontag:help.appveyor.com,2012-11-13:Comment/299229212013-11-11T21:42:46Z2013-11-11T21:42:46ZBuild Artifact zip file not getting uploaded to S3<div><p>OK, to automatically push artifacts after build they have to be
copied to %OutFolder% directory. If it's an application that must
be zipped before uploading then there must be a sub-folder inside
%OutFolder%.</p>
<p>For example, if you do the following structure:</p>
<pre>
<code>%OutFolder%\myapp\Alerts.aspx
%OutFolder%\myapp\Apply.aspx
%OutFolder%\myapp\ATS.aspx</code>
</pre>
<p>an zip artifact <code>myapp.zip</code> will be pushed with 3
files inside.</p>
<p>See the last section here: <a href=
"http://www.appveyor.com/docs/custom-build-scripts">http://www.appveyor.com/docs/custom-build-scripts</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/299229212013-11-11T21:48:54Z2013-11-11T21:48:54ZBuild Artifact zip file not getting uploaded to S3<div><p>ty for the link, i've been going off: <a href=
"http://help.appveyor.com/kb/getting-started/packaging-artifacts">http://help.appveyor.com/kb/getting-started/packaging-artifacts</a></p>
<hr></div>Dan Meltontag:help.appveyor.com,2012-11-13:Comment/299229212013-11-11T22:16:55Z2013-11-11T22:16:55ZBuild Artifact zip file not getting uploaded to S3<div><p>I'm not able to get the OutFolder to work properly:</p>
<p>Ii'm sure I'm doing something stupid:</p>
<hr>
<p>From: Dan Melton<br>
Sent: Monday, November 11, 2013 1:48 PM<br>
To: Feodor Fitsner<br>
Subject: RE: Build Artifact zip file not getting uploaded to S3
[Problems #40]</p>
<p>ty for the link, i've been going off: <a href=
"http://help.appveyor.com/kb/getting-started/packaging-artifacts">http://help.appveyor.com/kb/getting-started/packaging-artifacts</a></p>
<hr></div>Dan Meltontag:help.appveyor.com,2012-11-13:Comment/299229212013-11-11T22:17:37Z2013-11-11T22:17:37ZBuild Artifact zip file not getting uploaded to S3<div><p><br>
FileSystem Release Any CPU True False %(OutFolder)% False</p>
<p>how do i grab your variable there?</p>
<hr>
<p>From: Dan Melton<br>
Sent: Monday, November 11, 2013 2:08 PM<br>
To: Feodor Fitsner<br>
Subject: RE: Build Artifact zip file not getting uploaded to S3
[Problems #40]</p>
<p>I'm not able to get the OutFolder to work properly:</p>
<p>Ii'm sure I'm doing something stupid:</p>
<hr>
<p>From: Dan Melton<br>
Sent: Monday, November 11, 2013 1:48 PM<br>
To: Feodor Fitsner<br>
Subject: RE: Build Artifact zip file not getting uploaded to S3
[Problems #40]</p>
<p>ty for the link, i've been going off: <a href=
"http://help.appveyor.com/kb/getting-started/packaging-artifacts">http://help.appveyor.com/kb/getting-started/packaging-artifacts</a></p>
<hr></div>Dan Meltontag:help.appveyor.com,2012-11-13:Comment/299229212013-11-11T22:20:49Z2013-11-11T22:20:49ZBuild Artifact zip file not getting uploaded to S3<div><p>Try changing <code>publishUrl</code> to:</p>
<pre>
<code><publishUrl>$(OutFolder)\myapp</publishUrl></code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/299229212013-11-11T22:23:02Z2013-11-11T22:23:02ZBuild Artifact zip file not getting uploaded to S3<div><p>Oh, and <code>OutFolder</code> variables is get substituted only
for "Script" build scenario.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/299229212013-11-11T23:12:11Z2013-11-11T23:12:12ZBuild Artifact zip file not getting uploaded to S3<div><p>Looks like publish to filesystem isn't working with the msbuild
command line tools. We used VisualStudio to do the deploy...going
to rewrite my project files.</p>
<p><a href=
"http://stackoverflow.com/questions/16246562/using-msbuild-to-execute-a-file-system-publish-profile">
http://stackoverflow.com/questions/16246562/using-msbuild-to-execut...</a></p>
<hr></div>Dan Meltontag:help.appveyor.com,2012-11-13:Comment/299229212013-11-11T23:17:36Z2013-11-11T23:17:36ZBuild Artifact zip file not getting uploaded to S3<div><p>Interesting.</p>
<p>In "Visual Studio solution" scenario Appveyor publishes Web
Application projects by creating <code>appveyor.pubxml</code>
publishing profile:</p>
<pre>
<code><Project ToolsVersion=""4.0"" xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<SiteUrlToLaunchAfterPublish />
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>" + project.OutputPath + @"</publishUrl>
<DeleteExistingFiles>True</DeleteExistingFiles>
</PropertyGroup>
</Project></code>
</pre>
<p>and then addind two additional properties to msbuild.exe
call:</p>
<pre>
<code>... /p:DeployOnBuild=true;PublishProfile=appveyor</code>
</pre>
<p>Anyway, let me know about the results.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/299229212013-11-12T15:28:04Z2013-11-12T15:28:04ZBuild Artifact zip file not getting uploaded to S3<div><p>interesting...are we overwriting your files/settings by
uploading our own publish profile entitled 'appveyor'?</p>
<hr></div>Dan Meltontag:help.appveyor.com,2012-11-13:Comment/299229212013-11-12T15:41:56Z2013-11-12T15:41:56ZBuild Artifact zip file not getting uploaded to S3<div><p>Most probably Appveyor overwrites it if named
appveyor.pubxml.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/299229212013-11-12T15:48:22Z2013-11-12T15:48:22ZBuild Artifact zip file not getting uploaded to S3<div><p>I dont think so. I kept changing the settings in our publish
profile, and it used those settings, at least they were outputted
in the build log. However, if I remove the appveyor publish profile
from our repo, I get an error 'appveyor.pubxml' not found.</p>
<hr></div>Dan Meltontag:help.appveyor.com,2012-11-13:Comment/299229212013-11-12T17:01:27Z2013-11-12T17:01:27ZBuild Artifact zip file not getting uploaded to S3<div><p>Yeah, it only publishes on "Visual Studio solution"
scenario.</p>
<p>You may try using built-in packaging of Web Application projects
under this scenario to see if it works for you. It uses File system
method too.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/299229212013-11-12T17:04:22Z2013-11-12T17:04:22ZBuild Artifact zip file not getting uploaded to S3<div><p>But, I've got that scenario selected in my deploy settings on
the project in appveyor.</p>
<p>Can we do a deeper dive? I can send my build file directly or
the project. I just need to get one of these projects going, and I
can get the rest (25 or so) on the system. I can't quite connect
all the dots between your documentation, Microsoft's poorly
documented description of the settings and the build log.</p>
<hr></div>Dan Meltontag:help.appveyor.com,2012-11-13:Comment/299229212013-11-12T17:07:46Z2013-11-12T17:08:00ZBuild Artifact zip file not getting uploaded to S3<div><p>Yeah, let's continue via email.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/299229212013-11-12T17:09:05Z2013-11-12T17:09:05ZBuild Artifact zip file not getting uploaded to S3<div><p>great, drop me an email at <a href=
"mailto:dan@granicus.com">dan@granicus.com</a>, I'll share our
project stuff with you and maybe we can report back to anyone
reading this thread.</p>
<hr></div>Dan Melton