Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The publisher section in CC.Net will be executed regardless if the build is successful or fails. You need to add the 'publish to build server' as a task, under the tasks section - putting it after your last build step.</p> <p>This will cause CC.Net to only 'publish to build server' when all previous 'tasks' are completed, without raising an error code.</p> <p>Typically, if you know what is needed in a DOS .bat file to 'publish to build server' you do as follows;</p> <pre><code>&lt;tasks&gt; &lt;msbuild&gt; &lt;executable&gt;C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe&lt;/executable&gt; &lt;workingDirectory&gt;c:\Somewhere&lt;/workingDirectory&gt; &lt;projectFile&gt;Something.sln&lt;/projectFile&gt; &lt;buildArgs&gt;/noconsolelogger /p:Configuration=Debug /v:m&lt;/buildArgs&gt; &lt;targets&gt;Build&lt;/targets&gt; &lt;timeout&gt;720&lt;/timeout&gt; &lt;logger&gt;C:\program files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll&lt;/logger&gt; &lt;/msbuild&gt; &lt;exec&gt; &lt;executable&gt;C:\program files (x86)\CruiseControl.NET\server\PublishToServer.bat&lt;/executable&gt; &lt;baseDirectory&gt;C:\somewhere&lt;/baseDirectory&gt; &lt;buildArgs&gt;&lt;/buildArgs&gt; &lt;buildTimeoutSeconds&gt;9000&lt;/buildTimeoutSeconds&gt; &lt;/exec&gt; &lt;/tasks&gt; </code></pre> <p>As slawekg points out, you can use the buildpublisher, which will execute <strong>only</strong> if the build is successful, however I still find using a batch file to do the copying more configurable than what is available using buildpublisher.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload