Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CruiseControl.Net Build Publisher - Only publish compiled files

While setting up CruiseControl, I added a buildpublisher block to the publisher tasks:

<buildpublisher>
  <sourceDir>C:\MyBuild\</sourceDir>
  <publishDir>C:\MyBuildPublished\</publishDir>
  <alwaysPublish>false</alwaysPublish>
</buildpublisher> 

This works, but it copies the entire file contents of the build, I only want to copy the DLL's and .aspx pages, I don't need the source code to get published.

Does anyone know of a way to filter this, or do I need to setup a task to run a RoboCopy script instead?

like image 791
FlySwat Avatar asked Aug 22 '08 17:08

FlySwat


1 Answers

I set up a task to do this. I'm not aware of any way to make CruiseControl be that specific. I usually just chain a batch file to do the copy to the CC.net task.

like image 101
TheSmurf Avatar answered Sep 21 '22 15:09

TheSmurf