MSBuild.ExtensionPack.Tfs2013.TeamBuild和Visual Studio Online Builds

时间:2015-02-04 11:36:06

标签: msbuild tfsbuild azure-devops

我尝试使用ExtensionPack for 2013 TeamBuild运行msbuild脚本

我无法连接到服务器,所以我想知道这是否仅适用于基于服务器的TFS构建?

以下BuildScript的错误是:

TeamFoundationServiceUnavailableException TF31002Unable to connect to this Team Foundation Server

这是构建脚本

<Project ToolsVersion="4.0" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">


  <Import Project="C:\Program Files\MSBuild\ExtensionPack\4.0\MsBuild.ExtensionPack.Tasks" />

  <PropertyGroup>
    <TeamFoundationServerUrl>https://#####.visualstudio.com/</TeamFoundationServerUrl>
    <TeamProject>IT Development</TeamProject>
    <BuildUri></BuildUri>
    <BuildDefinitionName>Order Deploy Test</BuildDefinitionName>
  </PropertyGroup>

  <Target Name="Default">
    <!-- Queue a new build -->
    <MSBuild.ExtensionPack.Tfs2013.TeamBuild 
        TaskAction="Queue" 
        TeamFoundationServerUrl="$(TeamFoundationServerUrl)" 
        TeamProject="$(TeamProject)" 
        BuildDefinitionName="$(BuildDefinitionName)"/>
  </Target>
</Project>

0 个答案:

没有答案