当我使用 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/