java.lang.NumberFormatException: For input string: "${builds.count}"

We have upgraded Teamcity server from 7.x to 8.1 and builds are failing with this error:

java.lang.NumberFormatException: For input string: "${builds.count}"

Could someone help. Any plugin is missing now?

Comment actions Permalink

We have migrated from TC 7.x to 8.1.1 and facing some issues with REST API:

The below query  with TC 7.x


Gave this output:

<builds count=0>

Same query with 8.1 is giving the below output:

<builds href="/ttpAuth/app/rest/buildTypes/id:@{}/builds?locator=running:true"/>

Has anything changed with the REST APIs now. How could we get them working now.

Comment actions Permalink

Hello, you can provide exact REST API version in request to use the old behaviour:

In your case it would be http://${tc.server.ip}/httpAuth/app/rest/7.0/buildTypes/id:@{}/builds?locator=running:true


Please sign in to leave a comment.