Can I access the name of a user who submitted a personal build within ant?

I thought I would be able to do this with teamcity.auth.userId, but this returns TeamCityBuildId=xx where xx is the buildId. I would like to do this so that I can maintain separate ivy repositories for personal builds for each user, hopefully so that dependent projects can be run remotely.

Comment actions Permalink


Sorry for the delay in replying.

Currently, this is not possible "out of the box". Passing the name can be implemented as a plugin to TeamCity. Version 3.1 (that is planned to be released this month) will have some improvements in the openAPI that will make the task quite easy.

Please let us know if you need more details on this and whether it is OK for you to wait for the new API.

BTW, do you actually need multiple Ivy repositories? Is changing ivy.xml not enough?

Best regards,

Yegor Yarko
Project Manager
JetBrains, Inc
"Develop with pleasure!"

Comment actions Permalink


Thanks for the information - I'll checkout the EAP to see if I can see how to use the update openAPI.

As you suggest, changing the ivy.xml file should be enough once I have access to the user id.



Please sign in to leave a comment.