How to run teamcity project via command line without local mapping?

I need to run my project by command line:

java -jar tcc.jar run --host http://localhost:5000 -m "remote run message" -c MyProject

but got error:

No one of 8480 file(s) has been mapped to TeamCity. Check your file(s).

But I don't need any map or pre-tested run. I just need to run my project via command line like I do it in TeamCity web form. So, tell me please how can I do it?

Comment actions Permalink


You can trigger build using REST API. For example:

url -v -u user:password http://teamcity.server.url:8111/app/rest/buildQueue --request POST --header "Content-Type:application/xml" --data-binary @build.xml

where basic build.xml could be:


    <buildType id="buildConfID"/>


Please sign in to leave a comment.