使用ccnet发布.net站点

时间:2014-06-12 16:49:21

标签: git msbuild publish cruisecontrol.net

我正在尝试从git获取一个站点来构建,然后使用CruiseControl.NET发布。看了几个在线指南,并且能够获得我认为应该有用的东西,但每次构建它都成功但返回消息Skipping unpublishable project并且不会在任何地方发布。这是我目前在ccnet.config文件中的内容。

  <project name="Site">
<workingDirectory>C:\Build\Site\Build</workingDirectory>
<artifactDirectory>C:\Build\Site\Publish</artifactDirectory>
<tasks Name="Clean">
  <msbuild>
    <executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
    <workingDirectory>C:\Build\Site\Build</workingDirectory>
    <projectFile>Site.csproj</projectFile>
    <buildArgs>
      /t:Publish
    </buildArgs>
    <timeout>900</timeout>
  </msbuild>
</tasks>   
  <sourceControlProvider type="git">
    <executable>C:\Program Files (x86)\Git\cmd\git.exe</executable>
    <repository>gitreporsitory</repository>
    <workingDirectory>c:\build\site\build</workingDirectory>
  </sourceControlProvider>

0 个答案:

没有答案