env.Computername in perforce client settings
Hello,
I'm trying to set (Edit VCS Root) perforce client (under P4 Connection Settings) to guest-%env.COMPUTERNAME%-build and when I test the connection it fails but worked when I hardcoded the computername
Any Idea?
thanks
Please sign in to leave a comment.
Hello Malick,
%env.COMPUTERNAME% is reported by an agent when an agent starts. So, this parameter can not be obtained during Test Connection on the server because at this point server doesn't know which agent will be used.
You can try to specify such perforce client specification and run build on any agent with an agent side checkout. I think it should work.
Hello Nadia,
Seems like with this option selected when teamcity creates the workspace the view is empty but it's working with the 'Client mapping' option
Am I missing something?
Thanks
Malick