5

I am using Teamcity to publish a web app I have created, with targets Rebuild, ResolveReferences, _WPPCopyWebApplication, Package and the following command line parameters

/p:Configuration=Release;PackageLocation="%system.teamcity.build.workingDir%/Publish"
/p:WebProjectOutputDir=publish
/p:OutDir=publish\bin\
/p:DebugSymbols=false 
/p:DebugType=None
/verbosity:diag

The package gets created correctly, but ends up in a folder that is

%system.teamcity.build.workingDir%/Publish/Archive/Content/C_C/%system.teamcity.build.workingDir%/Web/obj/Release/Package/PackageTmp

where I would expect it to be created in either

%system.teamcity.build.workingDir%/Publish

or

%system.teamcity.build.workingDir%/Publish/Web

Is this possible to do?

Michael Haren
  • 105,752
  • 40
  • 168
  • 205
Kit Barnes
  • 725
  • 3
  • 11
  • 17

1 Answers1

7

Add /p:PackageLocation="%system.teamcity.build.workingDir%/Publish/Web" to your parameters for the build step.

Richard Ev
  • 52,939
  • 59
  • 191
  • 278
Jeff French
  • 1,029
  • 8
  • 22