运行clone的Ant脚本
<target name="clone" description="get the latest files">
<delete includeemptydirs="true">
<filesetdir="/opt/cruisecontrol-bin-2.8.4/projects/Mss/copyExample/local_copy/Mss" defaultexcludes="false">
<include name="**/*" />
</fileset>
</delete>
<exec executable="git" dir="/opt/cruisecontrol-bin-2.8.4/projects/Mss/copyExample/local_copy/Mss">
<arg line="clone -o fl ssh://git@ipaddress/git/run.git Mss" />
</exec>
</target>
在我当前的CruiseControl设置中,我运行以下目标:
<modificationsetquietperiod="60">
<git localworkingcopy="${projects.dir}/${project.name}/local_copy/${project.name}/"/>
</modificationset>
运行cruisecontrol会导致git退出,错误码为1。我猜modiationset是无法找到git本地工作副本。欢迎任何帮助。
我猜你的${project.name}
是Mss
。但是,您在/opt/cruisecontrol-bin-2.8.4/projects/Mss/copyExample/local_copy/Mss
中运行git
并签出到文件夹Mss
,创建文件夹/opt/cruisecontrol-bin-2.8.4/projects/Mss/copyExample/local_copy/Mss/Mss
。此外,如果您的${project.name}
没有扩展到Mss/copyExample
,您可能也有问题。
简而言之,我认为你的路径是错误的。