Project Settings in Version Control (GIT) & Errors

Completed

Hi All

I am getting the following error when I enable the Versioned Control for Root project in TeamCity.

'Push failed, status: REJECTED_OTHER_REASON, message: pre-receive hook declined'. 
I enabled the debugging for versioned control, unfortunately I didn't find anything useful in logs. 

I suspect that the reason for this issue is they way how TC does a commit i.e. it is performed on behalf of user who actually made the change in GUI. Access to the GIT repo that I use for VC is available only for a few users. Is it possible to configure TC to use only one user to commit / push all changes? 

2
1 comment

Hi, and sorry for the delay.

 

Your request is typically a bad idea, one of the ideas of committing the settings to version control is having the knowledge of who has done the changes. Having some "umbrella" user that would cover all UI admins would prevent you from having knowledge of who made the UI changes.

 

If you still want to implement this idea, TeamCity uses the VCS Username defined in the user profile, so you could create this umbrella user, and add it to all the admins profiles. That should get the trick done, but still, we would like to insist in that giving the appropriate users permissions would be our recommendation.

0

Please sign in to leave a comment.