Git commands
Hello again,
I want a possibility to run git commands from muy build scripts that executed on TeamCity server. (For example: git push)
I've read this doc (http://confluence.jetbrains.com/display/TCD8/VCS+Checkout+Mode). It seems that I need checkout mode Automatically on agent, but how can I activate and use it?
Thanks!
Please sign in to leave a comment.
Hi,
Yes, you need to use "Automatically on agent mode". You can select it in Build Configuration Settings -> Version Control Settings in "Checkout Options" section.
Yes, it works, thanks.
But I've got the next error:
Authentication method: Password
Username: my user name on GitHub
Password: my passoword on GitHub
What setting fields should I fill else? And where can I be mistaken?
Thanks!
Please check that you configured your repository correctly. For example execute "git config --list" in build working directory.
I've executed
"git config --list" and got the next log:
Thanks a lot.
Does this command work is run them via console on the same machine as the TeamCity agent and under the same user that the agent is running, with the same environment variables and the same working directory? (steps are described here)