Can't access status icon for latest build

Accessing the status icon for a specific build works fine:

http://codequal.kenyaemr.org/app/rest/builds/id:1/statusIcon (works!)
http://codequal.kenyaemr.org/app/rest/builds/id:2/statusIcon (works!)

But I want to get the status via the buildtype so that it's the latest build. I can access my build configuration at http://codequal.kenyaemr.org/viewType.html?buildTypeId=bt2 so I take bt2 to be the build type id.

http://codequal.kenyaemr.org/app/rest/builds/buildType:bt2/statusIcon (returns a "not found" icon)
http://codequal.kenyaemr.org/app/rest/builds/buildType:(id:bt2)/statusIcon (returns a "not found" icon)

If I remove /statusIcon from either of those URLs I get this message:


Error has occurred during request processing (Not Found).
Error: jetbrains.buildServer.server.rest.errors.NotFoundException: No build found by filter: Builds filter (buildType:Kenya EMR :: Maven Module Build {id=bt2}, running:false, count:1).
Could not find the entity requested. Check the reference is correct and the user has permissions to access the entity.


I've checked the documentation at http://confluence.jetbrains.com/display/TW/REST+API+Plugin#RESTAPIPlugin-BuildStatusIcon and both guest logins are enabled and the status widget is enabled for this build type. I am also able to access the build type XML ok via this URL

http://codequal.kenyaemr.org/app/rest/buildTypes/id:bt2 (works!)

Am using TeamCity Professional 7.1.5 (build 24400)

1 comment
Comment actions Permalink

Added a new project and build configuration (bt3) and now I can acess status icons for both bt2 and bt3. So problem solved but still seems like something wasn't working right

0

Please sign in to leave a comment.