Cannot get the .lastSuccessful revision locator to work on TC 8

Hi,

I'm trying to follow http://confluence.jetbrains.com/display/TCD8/Patterns+For+Accessing+Build+Artifacts to access the artifacts of the last successful build but I get the error "HTTP Status 404 - Could not find build by revision rule: .lastSuccessful"

Say the URL that doesn work is http://teamcity.mycompany.com/repository/download/MyBuildId/.lastSuccessful/Artifact.name I can get the artifact by changing only the revision locator to the specific ID of the last successful build, like so: http://teamcity.mycompany.com/repository/download/MyBuildId/2219:id/Artifact.name

I really tried to search for a solution because it feels like I'm making a really basic mistake, but I can't find any description of a similar problem. I saw some example which used lastSuccessful instead of .lastSuccessful but that revision rule is not recognized either.

What am I doing wrong? My TC version is 8.0.5.

2 comments
Comment actions Permalink

Just checked, url like this works fine for me. Stupid question: are you sure there is successful build with such artifact?

0
Comment actions Permalink

Thanks for your reply.

There is an artifact with that name (well in reality the file name is something else, but I can access it with the URL with the build number). And as far as I can understand the build is successful (it has the green check mark icon and I can chose to mark as failed in the build actions). And .lastFinished doesn't work either and I suppose it would return something no matter if the build was failed or successful. And the error message specifically says that it does not recognize the .lastSuccessful/.lastFinished revision locators.

0

Please sign in to leave a comment.