I am trying to setup Git post-commit hook for a particular project in Teamcity to trigger the builds if there is a change in BitBucket repository.
I am trying to use the following powershell script:
curl --user username:password -X POST "http://teamcity.org.com/app/rest/vcs-root-instances/commitHookNotification?locator=project:(id:project_id)"
It is giving me the following error:
No VCS roots are found for locator 'project:(id:project_id)' with current user 'teamcityuser' (TeamCityUser) {id=1672}. Check
locator and permissions using '/app/rest/vcs-root-instances?locator=$help' URL.
Is there any other way to configure post-commit hook in Git for teamcity using powershell script?