Jenkins TFS插件抛出NumberFormatException [英] Jenkins TFS plugin throws NumberFormatException

查看:95
本文介绍了Jenkins TFS插件抛出NumberFormatException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用Jenkin TFS插件从Visual Studio Online中进行轮询时,会收到以下消息和异常.

When I do a poll from Visual Studio Online using the Jenkin TFS Plugin I get the following message and exception.

我在Ubuntu 12.10上使用TEE-CLC.

I use TEE-CLC on Ubuntu 12.10.

No history entries were found for the item and version combination specified.
FATAL: For input string: "" 
java.lang.NumberFormatException: For input string: "" 
at java.lang.NumberFormatException.forInputString(Unknown Source) 
at java.lang.Integer.parseInt(Unknown Source) 
at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:200)
at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:214)
at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:189)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1415) 
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561)
at hudson.model.Run.execute(Run.java:1678) 
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 
at hudson.model.ResourceController.execute(ResourceController.java:88) 
at hudson.model.Executor.run(Executor.java:231)

有人知道该怎么做吗?

推荐答案

您可能要仔细检查项目路径TFS url是否存在任何可能的拼写错误.我在路径中有一个拼写错误,导致了同样的异常.

You may want to double check project path TFS url for any possible spelling mistakes. I had a spelling mistake in the path, caused the same exception.

这篇关于Jenkins TFS插件抛出NumberFormatException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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