Empty folders created when using WebDeploy

dan.m.webb's Avatar

dan.m.webb

30 Sep, 2016 10:39 AM

Hi,

we're deploying a Web Deploy package but when it's deployed the final path is over 260 characters.
This is being caused by a bunch of empty folders between the root and final directory.
e.g.
./parameters.xml
./a/c/v/b/h/y/u/k/o/bh/d/de/c/h/d/s/cx/deploy/<actual_content_here>

What we really need it
./parmeters.xml
./src/<actual_content_here>

Is there any way to specify the deploy target and remove these folders?

Thanks!

  1. 1 Posted by Ilya Finkelshte... on 30 Sep, 2016 05:52 PM

    Ilya Finkelshteyn's Avatar

    Hi Dan,

    How does this package being created? Can you please share your appveyor.yml file?

    --ilya.

  2. 2 Posted by dan.m.webb on 30 Sep, 2016 10:08 PM

    dan.m.webb's Avatar

    Just the standard web deploy tick box method.

    But also when we manually make a zip then make it a web deploy package web the options on artefact upload.

    In that case it would suggest that it is the output format causing it, which I have no idea how to control

  3. 3 Posted by Ilya Finkelshte... on 01 Oct, 2016 01:23 AM

    Ilya Finkelshteyn's Avatar

    Could you please send us link to specific build job which has this problem? Your appveyor.yml will not hurt too.

    --ilya.

  4. 4 Posted by dan.m.webb on 04 Oct, 2016 07:50 PM

    dan.m.webb's Avatar

    Hi ilya,

    it's a private repo that I no longer have access to. I'll try and get the team to update this ticket.

    Thanks,
    Dan

  5. 5 Posted by leecheneler1 on 05 Oct, 2016 08:26 AM

    leecheneler1's Avatar

    Hi,

    So yes the repo is private however I'll try to provide as much info as I can!

    So this would be our snippet of yml:

    artifacts: 
      - 
        name: MyProject
        path: MyProject.zip
    build_script: 
      - 
        cmd: |
            cd %APPVEYOR_BUILD_FOLDER%\MyProject
            nuget restore
            REM publish publishable standard projects
            msbuild MyProject\MyProject.csproj /t:Package /p:PackageLocation=%APPVEYOR_BUILD_FOLDER%\MyProject.zip /p:Configuration=Release
    

    So that yml produces an artefact with this directory structure:

    Content\C_C\projects\click-and-collect\ClickCollect\ClickCollect.Bot.Api\obj\Release\Package\PackageTmp
    

    The only folders that actually have content are Content and PackageTmp which is crazy. All folder in between are noise.

    then when it deploys to the web server another layer of empty directories are added before this gets dumped in and for our project it made the path 278 characters which is obviously too long for windows.

    Thanks,
    Lee

  6. 6 Posted by leecheneler1 on 05 Oct, 2016 08:29 AM

    leecheneler1's Avatar

    Sigh...

    Scrubbed yml but not path and now I can't edit it :(

  7. Support Staff 7 Posted by Feodor Fitsner on 06 Oct, 2016 01:37 AM

    Feodor Fitsner's Avatar

    You should tell AppVeyor that zip artifact is Web Deploy package, not a regular zip archive. Change artifacts section to the following and it should be fine:

    artifacts: 
      - 
        name: MyProject
        path: MyProject.zip
        type: WebDeployPackage
    
  8. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:08 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