I have a stage in teamcity which is updating some file and after updating this file it is pushing it back to remote repo.
But while It is trying to push to the repo I got the error:
[11:54:03] ! [rejected] master -> master (non-fast-forward)
[11:54:03]error: failed to push some refs to 'bitbucket.org:example/sl-infrastructure.git'
[11:54:03]hint: Updates were rejected because the tip of your current branch is behind
[11:54:03]hint: its remote counterpart. Integrate the remote changes (e.g.
[11:54:03]hint: 'git pull ...') before pushing again.
[11:54:03]hint: See the 'Note about fast-forwards' in 'git push --help' for details.
[11:54:03]Process exited with code 1
I checked the box "Clean up workspace".
The job is running on the one agent and in a consistent way. So there i no parallel job is running even.
I dont understand what is happening. Why it does not work in teamcity. While I can do it manually.
Anybody has expierenced this kind of issue ?