Script can be embedded into this field if they are enclosed within script marker, which starts with ${, and ends with }. Each time this property is used, the script and the marker will be replaced by execution result of the script. When enclosed within script markers, the '}' character in the script itself should be escaped, for example: ${if (...) {...\} else {...\}}. Multiple scripts can be embedded using multiple script markers. For syntax of enclosed scripts, please refer to script API reference below. Here are some commonly used examples:
Script (with script marker) Explanation
${vars.getValue("yourVariableName")} Embed value of variable 'yourVariableName'. Variables can be defined by switching to 'variables' tab of a configuration, and are inheritable and overridable. By embedding variables, you may define the property only once at a high level configuration, and have it varies across different configurations by overriding certain variables.
${node.getAttribute("yourAttributeName")} Embed value of node attribute 'yourAttributeName'. Node attributes are defined by selecting a particular node at grid tab. Both system and user attributes can be used as node attribute here. This script is useful if you want to use different property on different node.
${build.version} Embed version of current running build.
${repositories.get("yourRepositoryName").getRevision()} Get current revision of repository 'yourRepositoryName'.