Find/Reference TeamCity's internal build ID


I have a simple application that tracks builds and I want to be able to link back to to my TeamCity site from the application.  The only way I can seem to do this is through the internal TeamCity build ID, which doesn't seem to be available in the build config as an environment variable.

So there are two ways to do this, and I'm happy to do whatever's easier:

1.  Is there a way to get the internal build ID at build-time so I can save it in my application?
2.  Is there a way to link to the TeamCity page for a build using just the project ID and the sequence id (which are available at build time)?

thanks in advance.

1 comment
Comment actions Permalink

You can use build number instead of build id, just replace parameter buildId=<id> in the url with parameter buildNumber=<number>


Please sign in to leave a comment.