Build Artifact zip file not getting uploaded to S3

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. 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. artificat template path:

    ________________________________

  3. Missed a picture?

  4. 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. 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. ty for the link, i've been going off: http://help.appveyor.com/kb/getting-started/packaging-artifacts
    ________________________________

  7. 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. <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. Try changing publishUrl to:

    <publishUrl>$(OutFolder)\myapp</publishUrl>
    
  10. Oh, and OutFolder variables is get substituted only for "Script" build scenario.

  11. 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. 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. interesting...are we overwriting your files/settings by uploading our own publish profile entitled 'appveyor'?
    ________________________________

  14. Most probably Appveyor overwrites it if named appveyor.pubxml.

  15. 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. 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. 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. Yeah, let's continue via email.

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

Recent Discussions