CruiseControl.Net CCNetWorkingDirectory parameter problem

点点圈 提交于 2019-12-08 09:50:16

问题


I'm working with the latest CruiseControl.Net 1.5.7256.1.
I'm trying to use one of the system parameters, CCNetWorkingDirectory under sourcecontrol block and the project failed to recognize this parameter.

<sourcecontrol type="svn">
    <trunkUrl>https://padev/svn/physical/Source</trunkUrl>
    <workingDirectory>$[CCNetWorkingDirectory]\SVN\Source</workingDirectory>
    <username>ccnet</username>
    <password>hidden</password>
</sourcecontrol>

I also tried it as $CCNetWorkingDirectory, $(CCNetWorkingDirectory), Non of these option worked.

Thank you


回答1:


You got trapped. I think almost anybody who starts with CCNET tries to access CCNetWorkingDirectory inside CCNET configuration. This is not possible. Find my answer on a similar question here.




回答2:


I don't know in which version things changed but as of version 1.8 you can use what they call: System Paremeters as documented here:

http://confluence.public.thoughtworks.org/display/CCNET/Dynamic+Parameters

and it works for me as in this sample configuration:

<project name="ProjectName" queue="myqueue" queuePriority="1">
    <workingDirectory>path</workingDirectory>
    ...

    <sourcecontrol type="svn">
        <workingDirectory>$[$CCNetWorkingDirectory]</workingDirectory>
        ...
    </sourcecontrol>


来源:https://stackoverflow.com/questions/3080498/cruisecontrol-net-ccnetworkingdirectory-parameter-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!