Closed gh2k closed 9 years ago
You can already do that. :-) Try adding ${.data_model["teamcity.agent.name"]}
to the template (as documented here). You can see all available options with debug logging enabled.
2015-04-06 20:46:57,468 - DEBUG - teamcity.agent.hardware.cpuCount: 4
2015-04-06 20:46:57,468 - DEBUG - teamcity.agent.hardware.memorySizeMb: 8192
2015-04-06 20:46:57,468 - DEBUG - teamcity.agent.home.dir: /Users/parautenbach/TeamCity/buildAgent
2015-04-06 20:46:57,468 - DEBUG - teamcity.agent.jvm.file.encoding: UTF-8
2015-04-06 20:46:57,468 - DEBUG - teamcity.agent.jvm.file.separator: /
2015-04-06 20:46:57,468 - DEBUG - teamcity.agent.jvm.os.arch: x86_64
2015-04-06 20:46:57,468 - DEBUG - teamcity.agent.jvm.os.name: Mac OS X
2015-04-06 20:46:57,468 - DEBUG - teamcity.agent.jvm.os.version: 10.10.2
2015-04-06 20:46:57,468 - DEBUG - teamcity.agent.jvm.path.separator: :
2015-04-06 20:46:57,468 - DEBUG - teamcity.agent.jvm.specification: 1.7
2015-04-06 20:46:57,468 - DEBUG - teamcity.agent.jvm.user.country: US
2015-04-06 20:46:57,469 - DEBUG - teamcity.agent.jvm.user.home: /Users/parautenbach
2015-04-06 20:46:57,469 - DEBUG - teamcity.agent.jvm.user.language: en
2015-04-06 20:46:57,469 - DEBUG - teamcity.agent.jvm.user.name: parautenbach
2015-04-06 20:46:57,469 - DEBUG - teamcity.agent.jvm.user.timezone: Africa/Johannesburg
2015-04-06 20:46:57,469 - DEBUG - teamcity.agent.jvm.version: 1.7.0_51
2015-04-06 20:46:57,469 - DEBUG - teamcity.agent.launcher.version: 32195
2015-04-06 20:46:57,469 - DEBUG - teamcity.agent.name: Default Agent
2015-04-06 20:46:57,469 - DEBUG - teamcity.agent.ownPort: 9090
2015-04-06 20:46:57,469 - DEBUG - teamcity.agent.tools.dir: /Users/parautenbach/TeamCity/buildAgent/tools
2015-04-06 20:46:57,469 - DEBUG - teamcity.agent.work.dir: /Users/parautenbach/TeamCity/buildAgent/work
2015-04-06 20:46:57,469 - DEBUG - teamcity.agent.work.dir.freeSpaceMb: 847283
Nice one, thanks. :-)
It would be nice to have "build 'x' was started on agent 'y'" in the notification messages, but I can't seem to find a macro for that.