Command line builder - variables in configuration and file not found

I am trying to create a new command line builder configuration (to use Teamcity to populate an Opengrok database), and I am currently encountering two challenges.

First, is it possible to use variables liketeamcity.build.checkoutDir on the configuration page? Ideally, I would like to set the runner configuration as:

Build runner: Command line
Working directory ${user.home}/groksource (that is a symbolic link to ~/opengrok-0.6.1)
Command executable run-quiet.sh
Command parameters: -s ${teamcity.build.checkoutDir}

Second, using this configuration:

Build runner: Command line
Working directory ../../../groksource
Command executable run-quiet.sh
Command parameters: -s ${teamcity.build.checkoutDir}

I am getting the following error:

Cannot run process: Cannot run program "run-quiet.sh" (in directory "/home/teamcity/opengrok-0.6.1"): java.io.IOException: error=2, No such file or directory.

I can guarantee that /home/teamcity/opengrok-0.6.1/run-quiet.sh is there and properly permissioned. Do you have any idea why it wouldn't be found?

3 comments
Comment actions Permalink

You can use references to system properties and environment variables, the syntax is: %system.% or %env.]]>%.

As for "Cannot run program" error try to use the following command line:
/bin/sh run-quiet.sh

--
Pavel Sher

0
Comment actions Permalink

I got it working... thanks!

Can you tell me the version of svn that was used in the 3.1.2 Teamcity?

0
Comment actions Permalink

TeamCity uses svnkit java library to communicate with SVN server, it does not use native SVN client. In 3.1.2 TeamCity SVN integration should be compatible with Subversion version up to 1.5.

--
Pavel Sher

0

Please sign in to leave a comment.