How to find current versioned-settings commit/hash for a project, via REST API?
Hi - I have a project that uses versioned settings, and I want to know how to query what commit/hash/state a given project is currently using from the versioned settings repo. Ideally, through the REST API, but if someone knows of another way, I'm open.
My use case is that I want to update the branch that the versioned settings is using, then wait for the teamcity project to detect the change and update it's build configs on the server to use the new versioned settings, THEN add a build to the build queue.
Please sign in to leave a comment.
I've been able to get what I need by web-scraping
https://teamcity.nvidia.com/versionedSettingsStatus.html?projectId={projectId}&__fragmentId=versionedSettingsStatusInner
...but it's not pretty - just doing string pattern matching to find revisions. Would be nice to know if there's a cleaner way to do it...
Found this related feature request:
https://youtrack.jetbrains.com/issue/TW-67952/Versioned-settings-expose-latest-successfully-applied-commit-hash-via-Rest-API