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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With