Running Command Line run Tool without Mapping File

Answered

Hi

 

I have Build configurations which are running some scripts/commands which are not in any VCS. I want to kick off the build using Command line run tool which requires a mapping file with VCS information. Is there any way to kick off build without the mapping file (.teamcity-mappings.properties) or if I use any dummy value in the mapping file?

 

Thanks

0
4 comments

Hello,

It's not possible to run personal build using command line remote run tool on build configuration with no VCS root. You can use REST API request to trigger build via command line, see https://confluence.jetbrains.com/display/TCD10/REST+API#RESTAPI-TriggeringaBuild. 

0
Avatar
Permanently deleted user

Thank you Alina.

0
Avatar
Permanently deleted user

Hi Alina,

 

I am trying using the REST API now, but I don't want to provide username and password in the curl command. So I am using the variables as mentioned in the document -

curl -v -u %system.teamcity.auth.userId%:%system.teamcity.auth.password% http://localhost:8888/app/rest/buildQueue --request POST --header "Content-Type:application/xml" --data-binary @build.xml

 

With actual username and password value, this command works perfectly fine. But it's not authenticating with the variables. I created those variables in TeamCity Parameters. Can you please let me know if I am missing something?

 

Thanks

 

0

Hello,

These parameters can be used only if you perform a request from within a TeamCity build, it's not possible to use them from command line. You can create a new user especially for builds triggering. 

0

Please sign in to leave a comment.