TeamCityPublishArtifacts

Docs show this helpful msbuild snippet:

"*.dll" />   </ItemGroup>   <TeamCityPublishArtifacts SourceFiles="@(Files)" />



What is the attribute for the destination?

To be clearer... in the build configuration under General Settings, Artifact paths I would set:

Project\bin\Debug\*.dll =>  Project\.

So all dll artifacts will be published to the Project folder.

How do I recreate this behavior using the TeamCityPublishArtifacts?

Thanks,

Scott Knowles

2 comments
Comment actions Permalink

I have also tried using transformations on the itemgroup

<TeamCityPublishArtifacts SourceFiles="@(FilesToPublish->'%(FullPath)=>$(AssemblyName)\.')"/>

That did not work either.

Can anyone shed some light on this issue?

Thanks,

Scott Knowles

0
Comment actions Permalink

Could you please try

<Message Text="##teamcity[publishArtifacts '%(FilesToPublish->'%(FullPath)=>$(AssemblyName)\.')']"/>

Please note, you will propably need to escape some symbols for that case as shown at
http://www.jetbrains.net/confluence/display/TCD4/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-PublishingArtifactswhiletheBuildisStillinProgress

I added an issue at
http://www.jetbrains.net/tracker/issue2/TW-7701?query=%21Svn+subsystem+IDE%3A+VS+add-in+fixed+me

Please watch/vote/have a look to it.

0

Please sign in to leave a comment.