Exit status in a post command build
How can I get the return code in a post command build?
I have the following post commands in a build definition:
echo "Hello"
echo $?
But $? returns: ? and it should returns 0 because echo "Hello" finished OK. How can I get that status code or what other way exists for getting the status code from echo "Hello"?
|
Accepted answer
Have you tested the script separately? Are you running the script on Linux or Windows? The below commands work for me in a standalone script.
Linux: echo "Hello"Windows: ECHO "Hello" Fran Burgos selected this answer as the correct answer
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.