DataDog / ci-teamcity-plugin

Apache License 2.0
2 stars 1 forks source link

[CIAPP-5458] Adding Git information to the webhooks #18

Closed andrea-mosk closed 1 year ago

andrea-mosk commented 1 year ago

Adding Git information to the TeamCity builds based on what was discussed with TC engineers.

The main thing to consider is that TeamCity can report the git username in 4 different ways (😅) based on repository-specific settings (https://www.jetbrains.com/help/teamcity/git.html#General+Settings). So we need to get the current username style being used and then parse the username based on it. Two out of the 4 styles that users can choose do not have the user email, and for those we need to generate an email based on the information that we know: