Teamcity property for current user

I want to pass the teamcity username of the current registered user to the script construct called from teamcity, is there a property that has this? I did not see him when I looked. It cannot be a property specified by the user, because I want it to be tied to their actual login, so there is some kind of authentication of who they are.

+5
source share
2 answers

I used the% teamcity.build.triggeredBy% and% teamcity.build.triggeredBy.username% properties. These properties return "John Doe" and " john.doe@user.mail ". Using these values, I can allow the assembly to complete or not.

I read that the groovy plugin must be installed first in order to use these properties. But I can’t check if it is installed. I just do not have access to TeamCity administration settings.

+2
source

, " ". , TeamCity , . , TeamCity, VCS. , VCS (% vcsroot.user%).

, Windows, TeamCity ? , TeamCity. script.

+1

All Articles