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

Hello,
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 teamcity-mappings.properties 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?

2 comments
Comment actions Permalink

Hi,

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:

<build>

    <buildType id="buildConfID"/>

</build>
0

Please sign in to leave a comment.