Hi look at the file merge task, at the bottom of the page, there is an option to copy the files http://www.cruisecontrolnet.org/projects/ccnet/wiki/File_Merge_Task
taken from the page : Merge actions Prior to CruiseControl.NET 1.5.0, all files specified in this task are merged into the build log (this is the default behaviour if no action is specified.) Since the build log is XML data, all data that is merged needed to be treated as XML data. If the data was XML, it would be merged without any problems, otherwise the data would be embedded inside a CDATA block. With CruiseControl.NET 1.5.0 it is now possible to control how the merge will work. There are three available actions: * Merge: the default behaviour - merge to the build log as XML if possible, as CDATA if not possible * CData: always merge to the build log in a CDATA block * Copy: instead of merging the data into the build log, it will copy the specified files into a "build" folder under the artefacts folder for the project The following is an example of how to configure a "copy" action instead of merging: 1<merge> 2 <files> 3 <file> 4 <!-- path to NUnit test file --> 5 </file> 6 <file action="Copy"> 7 <!-- path to NUnit images --> 8 </file> 9 </files>*10*</merge> The build folder will use the same name as the build label for the project. If this folder already exists, any files within this folder will be overwritten. Why are the merged results not showing up in the Web Dashboard? If you have set up the configuration for the File Merge Task as described above and you are still not ending up with the appropriate results showing up within the web application, please try the following steps: 1. Click the original log link and check to see if the merged content is included in the xml. If it is missing then got onto step 2. If it is present and is still not showing up in the web page then try emailing the CCNet users list . 2. Have you put the File Merge Tasks in the <publishers /> section of your Project Configuration Block before your Xml Log Publisher? 3. Check the folder that contains the files that should be merged. If they are not there then you need to dig into your build script to find out why they aren't getting created. 4. If the files are there but aren't getting merged, double-check your ccnet.config file. Is the configuration specified correctly as specified above? Remember that case matters in XML tag and attribute names. 5. Check the ccnet.log file. You should see Info-level log messages stating that the files have been merged. 6. Does the file contain valid XML data? The File Merge Task only expects to process XML files. It will attempt to clean up non-XML files and write errors to the ccnet.log file, but it isn't always successful. with kind regards Ruben Willems On 4 February 2014 14:55, <[email protected]> wrote: > Hi, > > I have project running on a buildsever which is generating some > screenshots which I would like to display on the webdashboard as part of > the "Build Report" for that project. > > Currently the web server and build server are running on the same machine > so I could easily copy the screenshots (after a successful build) to some > folder within the "webdashboard" directory. I could then modify header.xsl > the display the screenshots. Simple example below: > > <td><img src="/ccnet/images/screenshot1.png"></img></td> > <td><img src="/ccnet/images/screenshot2.png"></img></td> > <td><img src="/ccnet/images/screenshot3.png"></img></td> > > This would work but what if the webserver is running on a different > machine than the build server? > > I was checking the available 'Publishers' and there are a couple of things > that sound useful but I think I am missing something. > > I can use the <buildpublisher> task to copy my screenshots to the > buildserver. But they will be copied to the buildserver and not the > webserver so that doesn't help. > > I can use the <merge> task and embed the images as CData but that doesn't > sound like a good approach. > > I could <ftp> the images to the websever. > > The webserver is able to parse the buildlogs saved on the buildserver so > is there a way to access my screenshots or whatever other data via some URL > or something? > > Any help, suggestions would be appricated. > > Thanks, > Lukasz > > -- > > --- > You received this message because you are subscribed to the Google Groups > "ccnet-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- --- You received this message because you are subscribed to the Google Groups "ccnet-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
