I am relatively new to TeamCity, but have been tasked with creating a gated check-in build that is configured to use a GIT repository hosted on BitBucket, where if the build successfully completes, it pushes to another repository on BitBucket.
I have created the SSH key on the VM where TeamCity is installed and have uploaded to the public key to BitBucket and TeamCity web dashboard.
I have tried a number of different approaches, but have been unsuccessful. When ever it gets to the build step to push to the remote repository, it is stuck calling the following:
call %env.TEAMCITY_GIT_PATH% push origin master --verbose
I have tried the following:
- VCS Root using the authentication method: Uploaded Key and Default Private Key
- VCS Checkout mode: Automattically on Agent
- Checkout directory: Automattically
- Clean Build: Checked
-.ssh private key is sitting under both the TeamCity and TeamCityService account with the following config file containing:
I tried running the git commands on the VM through GitBash and they work fine.
Any suggestions would be helpful.