Executable with parameters using Teamcity variables

Hi,

I'm trying to use the "Command line" Build step using the Teamcity variables, but I'm unable to.

Custom Script works well but not "Executable with parameters"


Example

Custom script:


echo %teamcity.build.checkoutDir%/test


Result:

<folderpath>/test

Executable with parameters:

script file:
echo.sh <test>

Script content:

echo %teamcity.build.checkoutDir%/$1

Result:

%teamcity.build.checkoutDir%/test


How can I use those parameters inside a script ?

Regards,

Please sign in to leave a comment.