Create Deployment zip file for webdeploy

I am struggling with how to create a deployment zip file from for my Microsoft MVC Project. My goal is to have a build create the artifacts that will be used to deploy to various environments like Build, QA and Production.

I am currently using this approach using Visual Studio Team Service (VSTS). I have a client who uses Team City and I need to create the same workflow using Team City.

In VSTS, I pass the following parms to the build task for the solution.

/p:DeployOnBuild=true /p:PublishProfile=CreatePackage /p:PackageLocation=$(build.stagingDirectory)

This causes the artifacts to be available for the other environments.

I am using the same solution in Team City and cannot get the web artifacts to get generated.

Any help would be appreciated.

0
1 comment

Hi Scott,

What build runner are you exactly using? Are you passing those parameters as well to the runner? It would also be helpful if you could provide a full build log from teamcity using the submit a request button above, as that includes the build logs of what is going on.

Also, please check our troubleshooting guide here for checking differences between locally working builds and those same builds failing on teamcity: https://confluence.jetbrains.com/display/TCD10/Common+Problems#CommonProblems-BuildworkslocallybutfailsormisbehavesinTeamCity

Also, you can use our artifacts system to create zips automatically from generated (or preexisting) files: https://confluence.jetbrains.com/display/TCD10/Configuring+General+Settings#ConfiguringGeneralSettings-ArtifactPaths

0

Please sign in to leave a comment.