Hi

1) <webURL>that can be declared once and dynamically built for all projects
you can do this via the pre-processor and the scope block
http://www.cruisecontrolnet.org/projects/ccnet/wiki/Configuration_Preprocessor

the scope block helps you to define a project name once, and use it for an
artifact subfolder, ...
Something like this :

 1 <cruisecontrol xmlns:cb="urn:ccnet.config.builder"> 2   <cb:define
WorkingMainDir="C:\Integration\"/> 3   <cb:define
WorkingDir="\WorkingDirectory"/> 4   <cb:define
ArtifactsDir="\Artifacts"/> 5  6   <cb:scope ProjectName="Alpha"> 7
 <project name="$(ProjectName)" queue="Q1" queuePriority="1"> 8
<workingDirectory>$(WorkingMainDir)$(ProjectName)$(WorkingDir)</workingDirectory>
9       
<artifactDirectory>$(WorkingMainDir)$(ProjectName)$(ArtifactsDir)</artifactDirectory>*10*
11     </project>12   </cb:scope>13 14   <cb:scope
ProjectName="Beta">15     <project name="$(ProjectName)" queue="Q1"
queuePriority="1">16
<workingDirectory>$(WorkingMainDir)$(ProjectName)$(WorkingDir)</workingDirectory>17
      
<artifactDirectory>$(WorkingMainDir)$(ProjectName)$(ArtifactsDir)</artifactDirectory>18
19     </project>*20*   </cb:scope>21 22 </cruisecontrol>


2) The ability to know what server any given project ran in an xsl file
in your build script , just echo out the servername. Tip give it a easy to
find name.
something like :
<TheServerNameBuildIsRunningOn>Appollo</TheServerNameBuildIsRunningOn>

in Nant you could use the echo task, in batch files echo %COMPUTERNAME%
this you can pick up easily via xsl


3) The ability for the master server to use its name for the
server/{ccnetservername} in the path to the log file.

This I do not understand :-(

the build is running on a slave (not the server where the dashboard is on),
so all logs are on the slave and can be seen via the dashboard.
Why would you need the masterServerName on the slave?

you could also use the pre-processor for this, just declare a variable
defining the masterServerName, and you can pass it wherever you want

with kind regards
Ruben Willems


On 8 November 2011 02:53, Klindel <[email protected]> wrote:

> I have a master server and several slave servers.  All data is viewed
> view the master server's web dashboard.  I know there is a webURL tag
> at a project level but that doesn't really do what I need.  I want it
> so that in the failure emails the url goes directly to the report
> instead of the main server page.  I'm able to do this most of the way
> using xsl.  However, if I have a master server and a project that runs
> on a slave server, the url appears
> like:
>
>
> http://masterserver/server/SlaveA/project/MAIN-Compile%20Check/build/log20111107170602Lbuild.615.xml/ViewBuildReport.aspx
>
> I need one of the following to work:
> 1) <webURL>that can be declared once and dynamically built for all
> projects
> 2) The ability to know what server any given project ran in an xsl
> file
> 3) The ability for the master server to use its name for the server/
> {ccnetservername} in the path to the log file.
>
> Any tips/help is appreciated.
>
>

Reply via email to