Get build id by git commit sha
Hello!
Is it possible to get build id by a git commit through rest api?
This is needed for basic gitlab 7.0+ integration. (https://github.com/gitlabhq/gitlabhq/blob/master/app/models/project_services/ci_service.rb)
Thanks.
Please sign in to leave a comment.
Hi,
No, there is no REST API command to get build id by git commit. Feel free to create new feature request in our tracker http://youtrack.jetbrains.com/issues/TW.
Using this request http://teamcity:8111/httpAuth/app/rest/changes?build=id:<buildId> you can get changes, which were included in this build. So going through all builds you can find which one includes needed git commit. Not rather good solution.