tfs - Jenkins TFS 插件抛出 NumberFormatException

标签 tfs jenkins jenkins-plugins

当我使用 Jenkin TFS 插件从 Visual Studio Online 进行民意调查时,我收到以下消息和异常。

我在 Ubuntu 12.10 上使用 TEE-CLC。

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)

有人知道该怎么办吗?

最佳答案

互联网上其他地方的答案表明这是由于缺乏特定的工作空间或凭据。

如果前面的命令有效,则很可能是由于本地工作区中缺少拉入的修订。这可能是由于用户缺乏这些内容的读取权限造成的。

对我来说,相当可笑的是,这是由 Jenkins 主机上不正确的服务器时钟(过去设置的)引起的,这导致之前的“get”命令在当前服务器时间之前请求修订;这实际上早于任何代码提交到特定位置的时间。

关于tfs - Jenkins TFS 插件抛出 NumberFormatException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21278265/

相关文章:

maven - 在 Jenkins(测试)实例中禁用 Maven 部署后构建操作?

Jenkins 管道 httpRequest 给出 NotSerializableException

jenkins - 在 Jenkins 中运行构建之前如何要求用户确认?

TFS 2010 构建定义

tfs - DevOps 中的分支策略

Jenkins 管道 "waitUntil"- 更改尝试之间的延迟

svn - Jenkins SubWCRev E155036 工作副本太旧

grails - 在 Jenkins 中构建 Grails 应用程序时出现 "Could not find or load main class Grails"

tfs - VSTS/TFS 扩展 - 在不刷新整个页面的情况下反射(reflect)网格/板的变化

tfs - 看板 TFS 2013 : Show work item ID