Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use teamcity message from shell scripts?

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?

like image 981
olshevski Avatar asked Apr 27 '11 10:04

olshevski


People also ask

How do I run a custom script in TeamCity?

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.


1 Answers

In a shell script, use

echo "##teamcity[buildStatus status='<status value>' text='<text>']"

Here is the detailed docs for TeamCity 2020.2.

like image 79
KIR Avatar answered Oct 27 '22 16:10

KIR