teamcity
env_vars()
¶
escape_msg(msg)
¶
Escapes characters so Teamcity can print correctly.
https://www.jetbrains.com/help/teamcity/build-script-interaction-with-teamcity.html#BuildScriptInteractionwithTeamCity-Escapedvalues
Parameters:
Name | Type | Description | Default |
---|---|---|---|
msg |
str
|
The message to process. |
required |
Returns:
Type | Description |
---|---|
str
|
A message that can be provided to Teamcity. |
Source code in m/log/ci_tools/providers/teamcity.py
log_format(_formatter, record, show_traceback, debug_python)
¶
Format a log record using the functions provided in this module.
This function is meant to be used by a log formatter. See more info
See:: https://www.jetbrains.com/help/teamcity/build-script-interaction-with-teamcity.html#BuildScriptInteractionwithTeamCity-BlocksofServiceMessages
Parameters:
Name | Type | Description | Default |
---|---|---|---|
_formatter |
Formatter
|
A log formatter instance. |
required |
record |
LogRecord
|
A log record. |
required |
show_traceback |
bool
|
If true, display the python stack trace. |
required |
debug_python |
bool
|
If true, display the location of the record's origin. |
required |
Returns:
Type | Description |
---|---|
str
|
A formatted string. |