I have several build steps that use command line with custom scripts. And i want to use teamcity messages. Like this ones:
##teamcity[message 'value']
##teamcity[buildNumber '<new build number>']
##teamcity[buildStatus status='<status value>' text='<text>']
But it seems that this commands are not working at all. What's wrong with them? Is it possible to run this commands in shell scripts in teamcity? Any ideas how to use them?
Go to your project in TeamCity and select Edit Configuration Settings > Build Steps > Add Build Step . Select Command Line from the Runner type dropdown. Select Custom Script from the Run dropdown.
In a shell script, use
echo "##teamcity[buildStatus status='<status value>' text='<text>']"
Here is the detailed docs for TeamCity 2020.2.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With