TeamCity Pipelines Help

Script

This Step allows you to create and run any scripts supported by the agent's OS.

Script Step Settings

Script Content

The platform-specific script to be executed as an executable script in Unix-like environments and as a *.cmd batch file on Windows. Under Unix-like OS the script is saved with the executable bit set and is then executed by OS. This defaults to /bin/sh interpreter on the most systems. If you need a specific interpreter to be used, specify shebang (for example, #!/bin/bash) as the first line of the script.

Note that TeamCity treats values wrapped in percentage characters (%) as references to Pipeline parameters. To prevent this from happening, use double percentage symbols (for example,%%Y%%m%%d%%H%%M%%S instead of %Y%m%d%H%M%S).

Format stderr as error

Specifies whether outputs to stderr should be handled as errors or warnings.

Last modified: 18 March 2024