Inside a build we are using a ant exec task in order to run a command (sqlplus).
This works if I run the ant script on my local machine (windows XP) directly (so the antscript itself seems to be ok)
We also can run the command as the "teamcity" user on a Linux box (so its privileges seems to be ok)
By echoing id and env from a little shell script we ensured that the build agent actually runs as "teamcity"
Yet the build fails, giving us:
Execute failed: java.io.IOException: Cannot run program "sqlplus" (in directory "/home/teamcity/work/32c0f9f1f7054f1b/blah"): java.io.IOException: error=13, Permission denied.
When constructing the shell script we noted that we couldn't use the sh shell, it as well gave use a Permission Denied, while using sh was ok when logged on as teamcity directly.
Any hints on what is going on?