团队城市 - URL触发器 - 不起作用

时间:2018-02-05 09:04:42

标签: teamcity

我们正在使用TeamCity Professional 9.1.7,我们在Team City中使用Selenium设置了自动化测试。

为了调用测试套件,我们正在利用URL构建触发器。

在目标服务器上部署应用程序后,我们会有一个URL,它将每天在服务器上返回已安装的版本和日期时间戳。

当我们尝试手动点击URL时,会返回版本和日期时间。并且TeamCity和已部署的服务器之间存在连接。

我们已将网址配置为:abc.XXX / sample.txt,TeamCity正在抱怨以下消息:

URL build trigger failed with error: URL abc.XXX/sample.txt: null 
Hide stacktrace

jetbrains.buildServer.buildTriggers.BuildTriggerException: URL build trigger failed with error: URL https://abc.XXX/sample.txt: null 
at jetbrains.buildServer.buildTriggers.url.UrlBuildTrigger$2.makeTriggerException(UrlBuildTrigger.java:117)
at jetbrains.buildServer.buildTriggers.async.impl.AsyncPolledBuildTrigger.processJobResults(AsyncPolledBuildTrigger.java:146)
at jetbrains.buildServer.buildTriggers.async.impl.AsyncPolledBuildTrigger.triggerBuild(AsyncPolledBuildTrigger.java:60)
at jetbrains.buildServer.serverSide.impl.BuildTriggersChecker$4.run(BuildTriggersChecker.java) 
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:89) 
at jetbrains.buildServer.serverSide.impl.BuildTriggersChecker.callTrigger(BuildTriggersChecker.java:32) 
at jetbrains.buildServer.serverSide.impl.BuildTriggersChecker.access$1100(BuildTriggersChecker.java:65) 
at jetbrains.buildServer.serverSide.impl.BuildTriggersChecker$BuildTriggersGroup.processTriggers(BuildTriggersChecker.java:37)
at jetbrains.buildServer.serverSide.impl.BuildTriggersChecker.triggerBuilds(BuildTriggersChecker.java:50) 
at jetbrains.buildServer.serverSide.impl.BuildServerRunner$4.doSomething(BuildServerRunner.java) 
at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.runAction(BuildServerRunner.java:47)
at jetbrains.buildServer.serverSide.impl.BuildServerRunner$BuildServerWorker.run(BuildServerRunner.java:9) 
at java.lang.Thread.run(Thread.java:745) 
Caused by: jetbrains.buildServer.buildTriggers.async.DetectionException: URL https://abc.XXX/sample.txt: null 
at jetbrains.buildServer.buildTriggers.url.UrlBuildTrigger.createThrowableResult(UrlBuildTrigger.java:203) 
at jetbrains.buildServer.buildTriggers.url.UrlBuildTrigger.access$700(UrlBuildTrigger.java:39) 
at jetbrains.buildServer.buildTriggers.url.UrlBuildTrigger$2$1.perform(UrlBuildTrigger.java:169) 
at jetbrains.buildServer.buildTriggers.async.impl.AsyncPolledBuildTrigger$2.run(AsyncPolledBuildTrigger.java:172)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
... 1 more 
Caused by: jetbrains.buildServer.buildTriggers.url.ResourceHashProviderException: URL https://abc.XXX/sample.txt: null 
at jetbrains.buildServer.buildTriggers.url.HttpResourceHashProvider.getResourceHash(HttpResourceHashProvider.java:115)
at jetbrains.buildServer.buildTriggers.url.UrlBuildTrigger$2$1.perform(UrlBuildTrigger.java:149) 
... 4 more 
Caused by: java.lang.NullPointerException

请帮忙。

1 个答案:

答案 0 :(得分:0)

最后问题解决了,我们的网址中有下划线_。团队城市似乎存在约束/缺陷,URL触发器无法在其中加上_

我们将所有_替换为-并且有效。