Pre-build step in VS project getting run as one line

Hello,
I'm currently looking at using TeamCity as a possible CI solution for my company. However, in trying to set up
I'm using TFS and MSBuild, and there a prebuild step in my proj files to cd to the $(ProjectDir) and then call ivy-retrieve to get the needed dependencies. If I just run msbuild on the command line, it all works fine, but running through Team City gives a return code of 1. I checked the Environment variables for my build agent and confirmed ivy was on the path. I did however notice that the error is "cd C:\TeamCity\buildAgent\work\5ce14ed0e5dab9a\etc ivy-retrieve" exited with code 1. Does this indicate that TC is trying to run the whole bit as a single command?

Thanks for any help you can offer.

5 comments

Hi

Could you post a screenshot of the build step settings please.

0

Sure. I've attached my screenshot from my build step. I also realized I'm not running the latest version of TC so I'm going to update that today and see if that changes anything.



Attachment(s):
ScreenShot.png
0

Updating did not resolve the issue. I have also attached a screen shot of the actual error message.
Thanks,
Kendrick



Attachment(s):
TCError.png
0

Hello,

Sorry for the delay in replying.

If the build runs OK when you run it from console but fails in TeamCity, you might need to doublecheck it's not the issue with the environment TeamCity agent runs in. Please see "Build fails in TeamCity but not locally" at http://confluence.jetbrains.net/display/TCD65/Common+Problems

If it is confirmed as not environment issue, it would be helpful for us if you can send us an example .proj file that reproduces the issue.

0

Please sign in to leave a comment.