1

现在我正在 tfs 中尝试 devops-thing。目前我坚持詹金斯与 tfs 的集成。首先我解释我做了什么。

1- 在 .NET 中创建 1 个 MVC 项目并推送到 TFS 存储库。
2- 创建 jenkins 项目并通过 Tfs-Auth-Token 将此项目与 tfs 集成

在第一次推动之前,一切都很完美。首次推送后自动构建的代码但抛出错误

我在构建时收到此错误。但在构建我的代码之前似乎给出了一个错误。我在 stackoverflow 上搜索了一些东西,但没有人分享任何东西。请帮助

Running as SYSTEM
Building in workspace C:\Program Files (x86)\Jenkins\workspace\Netphin
FATAL: Parameter 'haystack' is null.
java.lang.IllegalArgumentException: Parameter 'haystack' is null.
    at hudson.plugins.tfs.util.StringHelper.endsWithIgnoreCase(StringHelper.java:9)
    at hudson.plugins.tfs.TeamCollectionConfiguration.isTeamServices(TeamCollectionConfiguration.java:199)
    at hudson.plugins.tfs.TeamCollectionConfiguration.areSameCollectionUri(TeamCollectionConfiguration.java:191)
    at hudson.plugins.tfs.TeamCollectionConfiguration.findCredentialsForCollection(TeamCollectionConfiguration.java:310)
    at hudson.plugins.tfs.model.AutomaticCredentialsConfigurer.getCredentials(AutomaticCredentialsConfigurer.java:27)
    at hudson.plugins.tfs.TeamFoundationServerScm.createServer(TeamFoundationServerScm.java:479)
    at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:313)
    at hudson.scm.SCM.checkout(SCM.java:504)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
    at hudson.model.Run.execute(Run.java:1818)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE```
4

0 回答 0