TFS 2017升级后,Ant构建未运行TFS 2015 [英] Ant Builds not Running After TFS 2017 Upgrade form TFS 2015

查看:61
本文介绍了TFS 2017升级后,Ant构建未运行TFS 2015的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好


TFS 2017 - 版本15.112.26307.0

构建代理:vsts-agent-win7-x64-2.112.0.zip


我们刚刚从TFS 2015升级到TFS 2017
$
我们认为到目前为止,与源控制存储库和所有设置相关的优质还是


但是我们的Ant构建任务没有被执行。

我们在构建日志中收到以下错误


  2017-05 -11T18:31:30.9671613Z ## [section]开始:建造

  2017-05-11T18:31:30.9827925Z =============== ================================================== =============

  2017-05-11T18:31:30.9827925Z任务         :Ant

  2017-05-11T18:31:30.9827925Z Description  :使用Apache Ant构建

  2017-05-11T18:31:30.9827925Z版本      :1.112.1

  2017-05-11T18:31:30.9827925Z作者       :Microsoft Corporation

  2017-05-11T18:31:30.9827925Z帮助         :[更多信息]( https://go.microsoft.com/fwlink/?LinkID=613718

  2017-05-11T18:31:30.9827925Z ============================== ================================================ <无线电通信/>
  2017-05-11T18:31:33.5766281Z错误:失败:未找到ant:null

  2017- 05-11T18:31:33.5922486Z ## [错误]失败:找不到蚂蚁:null

  2017-05-11T18:31:33.5922486Z ## [section]完成:构建


我们甚至尝试创建新的构建定义但仍然遇到相同的错误。


Ant构建在升级之前运行。 / p>

我们甚至尝试在高级设置中指定'设置ANT_HOME路径'选项指向ANT_HOME绝对路径

它仍然给出相同的错误


我们能够从JDeveloper执行Ant构建文件

我们的应用程序是Oracle ADF应用程序(Jav)基于a / XML)


感谢任何帮助


谢谢你
Sameer

解决方案

确保在PATH中找到ant.exe环境变量。


运行" where ant"从作为构建代理运行的同一用户运行的命令行(或者对运行可执行文件的构建队列"cmd.exe"参数" / c"其中"ant"进行排队,以查看是否找到它。


Hi

TFS 2017 - Version 15.112.26307.0
Build Agent : vsts-agent-win7-x64-2.112.0.zip

We just upgraded from TFS 2015 to TFS 2017
We see everthing fine so far related to the source control repository and all the settings as well

But our Ant Build Tasks are not getting executed.
We are getting the following error in the build logs

 2017-05-11T18:31:30.9671613Z ##[section]Starting: Build
 2017-05-11T18:31:30.9827925Z ==============================================================================
 2017-05-11T18:31:30.9827925Z Task         : Ant
 2017-05-11T18:31:30.9827925Z Description  : Build with Apache Ant
 2017-05-11T18:31:30.9827925Z Version      : 1.112.1
 2017-05-11T18:31:30.9827925Z Author       : Microsoft Corporation
 2017-05-11T18:31:30.9827925Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613718)
 2017-05-11T18:31:30.9827925Z ==============================================================================
 2017-05-11T18:31:33.5766281Z Error: Failed which: Not found ant: null
 2017-05-11T18:31:33.5922486Z ##[error]Failed which: Not found ant: null
 2017-05-11T18:31:33.5922486Z ##[section]Finishing: Build

We even tried to create new build definitions but still getting the same error.

The Ant Builds were running before the Upgrade.

We even tried specifying the 'Set ANT_HOME Path' option in the Advanced settings pointing to the ANT_HOME absolute path
It is still giving the same error

We are able to execute the Ant Build file from the JDeveloper
Our application is an Oracle ADF Application (Java/XML based)

Any help is appreciated

Thanks
Sameer

解决方案

make sure ant.exe can be found in the PATH environment variable.

Run "where ant" from a commandline that's running as the same user the build agent runs under (or queue a build that has run executable "cmd.exe" parameters "/c "where ant"" to see if it's found.


这篇关于TFS 2017升级后,Ant构建未运行TFS 2015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆