Build Artifact zip file not getting uploaded to S3

Dan Melton's Avatar

Dan Melton

11 Nov, 2013 07:30 PM

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. Support Staff 1 Posted by Feodor Fitsner on 11 Nov, 2013 08:37 PM

    Feodor Fitsner's Avatar

    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. 2 Posted by Dan Melton on 11 Nov, 2013 08:58 PM

    Dan Melton's Avatar

    artificat template path:

    ________________________________

  3. Support Staff 3 Posted by Feodor Fitsner on 11 Nov, 2013 09:03 PM

    Feodor Fitsner's Avatar

    Missed a picture?

  4. 4 Posted by Dan Melton on 11 Nov, 2013 09:14 PM

    Dan Melton's Avatar

    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. Support Staff 5 Posted by Feodor Fitsner on 11 Nov, 2013 09:42 PM

    Feodor Fitsner's Avatar

    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:

    %OutFolder%\myapp\Alerts.aspx
    %OutFolder%\myapp\Apply.aspx
    %OutFolder%\myapp\ATS.aspx
    

    an zip artifact myapp.zip will be pushed with 3 files inside.

    See the last section here: http://www.appveyor.com/docs/custom-build-scripts

  6. 6 Posted by Dan Melton on 11 Nov, 2013 09:48 PM

    Dan Melton's Avatar

    ty for the link, i've been going off: http://help.appveyor.com/kb/getting-started/packaging-artifacts
    ________________________________

  7. 7 Posted by Dan Melton on 11 Nov, 2013 10:16 PM

    Dan Melton's Avatar

    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. 8 Posted by Dan Melton on 11 Nov, 2013 10:17 PM

    Dan Melton's Avatar

    <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. Support Staff 9 Posted by Feodor Fitsner on 11 Nov, 2013 10:20 PM

    Feodor Fitsner's Avatar

    Try changing publishUrl to:

    <publishUrl>$(OutFolder)\myapp</publishUrl>
    
  10. Support Staff 10 Posted by Feodor Fitsner on 11 Nov, 2013 10:23 PM

    Feodor Fitsner's Avatar

    Oh, and OutFolder variables is get substituted only for "Script" build scenario.

  11. 11 Posted by Dan Melton on 11 Nov, 2013 11:12 PM

    Dan Melton's Avatar

    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. Support Staff 12 Posted by Feodor Fitsner on 11 Nov, 2013 11:17 PM

    Feodor Fitsner's Avatar

    Interesting.

    In "Visual Studio solution" scenario Appveyor publishes Web Application projects by creating appveyor.pubxml publishing profile:

    <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>
    

    and then addind two additional properties to msbuild.exe call:

    ... /p:DeployOnBuild=true;PublishProfile=appveyor
    

    Anyway, let me know about the results.

  13. 13 Posted by Dan Melton on 12 Nov, 2013 03:28 PM

    Dan Melton's Avatar

    interesting...are we overwriting your files/settings by uploading our own publish profile entitled 'appveyor'?
    ________________________________

  14. Support Staff 14 Posted by Feodor Fitsner on 12 Nov, 2013 03:41 PM

    Feodor Fitsner's Avatar

    Most probably Appveyor overwrites it if named appveyor.pubxml.

  15. 15 Posted by Dan Melton on 12 Nov, 2013 03:48 PM

    Dan Melton's Avatar

    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. Support Staff 16 Posted by Feodor Fitsner on 12 Nov, 2013 05:01 PM

    Feodor Fitsner's Avatar

    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. 17 Posted by Dan Melton on 12 Nov, 2013 05:04 PM

    Dan Melton's Avatar

    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. Support Staff 18 Posted by Feodor Fitsner on 12 Nov, 2013 05:07 PM

    Feodor Fitsner's Avatar

    Yeah, let's continue via email.

  19. 19 Posted by Dan Melton on 12 Nov, 2013 05:09 PM

    Dan Melton's Avatar

    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.
    ________________________________

  20. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:37 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac