Hi There,
We're converting a project over to use this. I've successfully converted another project, which puts a zip file in our s3 bucket. However, this new project makes the folder and places a build.txt file...but no zip. It compiles and builds without errors.
What could be the cause?
Thanks
Dan

#1 Posted by Feodor Fitsner Support staff on 11 Nov, 2013 08:37 PM
Hi Dan,
What do you have in Artifact path template field on Packaging tab of project settings?
Is that artifact part of automatic VS.NET solution artifacts or it's a custom one specified on Packaging tab?
Does it push that artifact for different storage type (AppVeyor's built-in or Azure blob)?
#2 Posted by Dan Melton on 11 Nov, 2013 08:58 PM
artificat template path:
________________________________
#3 Posted by Feodor Fitsner Support staff on 11 Nov, 2013 09:03 PM
Missed a picture?
#4 Posted by Dan Melton on 11 Nov, 2013 09:14 PM
artifact template:
{project}\{version}\{artifact}
Is that artifact part of automatic VS.NET solution artifacts or it's a custom one specified on Packaging tab?
I'm using a publish profile, and it looks like I'm maybe mis-specifying the variables in the templates?:
Done executing task "MakeDir".
Task "CopyPipelineFiles"
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.
________________________________
From: Dan Melton
Sent: Monday, November 11, 2013 12:50 PM
To: Feodor Fitsner
Subject: RE: Build Artifact zip file not getting uploaded to S3 [Problems #40]
artificat template path:
________________________________
#5 Posted by Feodor Fitsner Support staff on 11 Nov, 2013 09:42 PM
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%.
For example, if you do the following structure:
an zip artifact
myapp.zipwill be pushed with 3 files inside.See the last section here: http://www.appveyor.com/docs/custom-build-scripts
#6 Posted by Dan Melton on 11 Nov, 2013 09:48 PM
ty for the link, i've been going off: http://help.appveyor.com/kb/getting-started/packaging-artifacts
________________________________
#7 Posted by Dan Melton on 11 Nov, 2013 10:16 PM
I'm not able to get the OutFolder to work properly:
Ii'm sure I'm doing something stupid:
________________________________
From: Dan Melton
Sent: Monday, November 11, 2013 1:48 PM
To: Feodor Fitsner
Subject: RE: Build Artifact zip file not getting uploaded to S3 [Problems #40]
ty for the link, i've been going off: http://help.appveyor.com/kb/getting-started/packaging-artifacts
________________________________
#8 Posted by Dan Melton on 11 Nov, 2013 10:17 PM
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>%(OutFolder)%</publishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
</PropertyGroup>
</Project>
how do i grab your variable there?
________________________________
From: Dan Melton
Sent: Monday, November 11, 2013 2:08 PM
To: Feodor Fitsner
Subject: RE: Build Artifact zip file not getting uploaded to S3 [Problems #40]
I'm not able to get the OutFolder to work properly:
Ii'm sure I'm doing something stupid:
________________________________
From: Dan Melton
Sent: Monday, November 11, 2013 1:48 PM
To: Feodor Fitsner
Subject: RE: Build Artifact zip file not getting uploaded to S3 [Problems #40]
ty for the link, i've been going off: http://help.appveyor.com/kb/getting-started/packaging-artifacts
________________________________
#9 Posted by Feodor Fitsner Support staff on 11 Nov, 2013 10:20 PM
Try changing
publishUrlto:#10 Posted by Feodor Fitsner Support staff on 11 Nov, 2013 10:23 PM
Oh, and
OutFoldervariables is get substituted only for "Script" build scenario.#11 Posted by Dan Melton on 11 Nov, 2013 11:12 PM
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.
http://stackoverflow.com/questions/16246562/using-msbuild-to-execute-a-file-system-publish-profile
________________________________
#12 Posted by Feodor Fitsner Support staff on 11 Nov, 2013 11:17 PM
Interesting.
In "Visual Studio solution" scenario Appveyor publishes Web Application projects by creating
appveyor.pubxmlpublishing profile:and then addind two additional properties to msbuild.exe call:
Anyway, let me know about the results.
#13 Posted by Dan Melton on 12 Nov, 2013 03:28 PM
interesting...are we overwriting your files/settings by uploading our own publish profile entitled 'appveyor'?
________________________________
#14 Posted by Feodor Fitsner Support staff on 12 Nov, 2013 03:41 PM
Most probably Appveyor overwrites it if named appveyor.pubxml.
#15 Posted by Dan Melton on 12 Nov, 2013 03:48 PM
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.
________________________________
#16 Posted by Feodor Fitsner Support staff on 12 Nov, 2013 05:01 PM
Yeah, it only publishes on "Visual Studio solution" scenario.
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.
#17 Posted by Dan Melton on 12 Nov, 2013 05:04 PM
But, I've got that scenario selected in my deploy settings on the project in appveyor.
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.
________________________________
#18 Posted by Feodor Fitsner Support staff on 12 Nov, 2013 05:07 PM
Yeah, let's continue via email.
#19 Posted by Dan Melton on 12 Nov, 2013 05:09 PM
great, drop me an email at [email blocked], I'll share our project stuff with you and maybe we can report back to anyone reading this thread.
________________________________
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:37 AM.