Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle test failed to find flowId on teamcity

We are using Teamcity 9.0.3 and we try to run gradle build with tests. But, it failed with the following exception:

[15:25:41][:test] Failed to find flowId for [com.stub.AppTest]
[15:25:41][:test] java.lang.NullPointerException: Failed to find flowId for [com.stub.AppTest]
[15:25:41][:test]   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[15:25:41][:test]   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[15:25:41][:test]   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[15:25:41][:test]   at java.lang.reflect.Constructor.newInstance(Constructor.java:422)

I use gradle wrapper and 2.5 version of it and teamcity agents for build. How can I fix this?

like image 448
Alexey Avatar asked Aug 05 '15 12:08

Alexey


Video Answer


1 Answers

Well, i found answer: it is a bug of this version.

https://youtrack.jetbrains.com/issue/TW-42012

For fix it you may to update version to 9.0.4 or later.

like image 103
Alexey Avatar answered Sep 30 '22 19:09

Alexey