Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Teamcity property for current logged in user

I want to pass the teamcity username of the current logged in user to a build script called from teamcity, is there a property that has this? I didn't see one when I looked. It can't be a user specified property because I want it to be tied to their actual login so there is some sort of authentication of who they are.

like image 687
jtruelove Avatar asked Nov 11 '10 00:11

jtruelove


1 Answers

I used properties %teamcity.build.triggeredBy% and %teamcity.build.triggeredBy.username%. These properties returns "John Doe" and "[email protected]". Using this values I can allow to run a build or not.

I've read that groovy plugin should be installed first to use these properties. But I can't check if I have it installed. I just do not have access to TeamCity administration settings.

like image 118
Sergey Miroshnichenko Avatar answered Oct 18 '22 04:10

Sergey Miroshnichenko