我是Jenkins工具的新手 使用tfs插件在Jenkins中执行Java项目的构建配置时。 我将源代码放在另一台服务器上的本地服务器上。我使用Visual Studio 2012作为代码库。
运行构建时出现以下错误。
Started by user anonymous
Building in workspace C:\Program Files\Jenkins\jobs\Maven TFS\workspace
FATAL: illegal URI: [192.168.1.202:8080/tfs/web/Index.asp]
java.lang.IllegalArgumentException: illegal URI: [192.168.1.202:8080/tfs/web/Index.asp]
at com.microsoft.tfs.core.util.URIUtils.newURI(URIUtils.java:317)
at hudson.plugins.tfs.model.Server.<init>(Server.java:59)
at hudson.plugins.tfs.model.Server.<init>(Server.java:50)
at hudson.plugins.tfs.TeamFoundationServerScm.createServer(TeamFoundationServerScm.java:390)
at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:237)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1738)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 0: 192.168.1.202:8080/tfs/web/Index.asp
at java.net.URI$Parser.fail(Unknown Source)
at java.net.URI$Parser.checkChars(Unknown Source)
at java.net.URI$Parser.checkChar(Unknown Source)
at java.net.URI$Parser.parse(Unknown Source)
at java.net.URI.<init>(Unknown Source)
at com.microsoft.tfs.core.util.URIUtils.newURI(URIUtils.java:313)
... 12 more
[BFA] Scanning build for known causes...
[BFA] No failure causes found
[BFA] Done. 0s
Finished: FAILURE
请帮我弄清楚以下问题。
答案 0 :(得分:1)
您用于连接TFS的URI无效
192.168.1.202:8080/tfs/web/Index.asp
是TFS的Web UI的URI,而不是源代码库
你需要使用类似的东西
192.168.1.202:8080/tfs/defaultcollection
当您设置TFS插件的属性