문제

I would like to pass my powershell build step script the user who is currently logged in teamcity and triggered the build to run. I have tried to approach it in a different way where a user checks in a file which would contain the users user name but my PM insists that I use teamcity to pass the user. I have tried

%teamcity.auth.userid%  or %System.teamcity.auth.userid%  or %env.username% or 
%teamcity.agent.jvm.user.name%

and none of them are giving me the proper user name. Could someone help please ?

도움이 되었습니까?

해결책

Try teamcity.build.triggeredBy.username

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top