Examples for Create project pointing to repository URL
Is there either an example or additional documentation beyond what is contained in the Creating and Editing Projects documentation page that describes the semantics of creating a sub project from a VCS URL? Is there a publicly readable VCS URL that can be examined, or better still, imported?
Presumably, one should be able to create a correctly formatted project in VCS for use by a subsequent import. I have been unsuccessful in finding any documentation about how one might create the VCS repo for use by the import.
I would like to know the following:
- How would one go about creating a VCS repository containing a single TeamCity project that would be suitable for subsequent import?
- How would you then import that project into another TeamCity instance?
- Are there REST API calls supporting this workflow?
Please sign in to leave a comment.
Hi Michael, and sorry for the late response.
I think you are mixing up creating a TeamCity project pointing to a VCS repository, and creating the project IN a VCS repository. The page you linked shows how to create a project within TeamCity. All the data about the project will be stored within TeamCity, not the VCS Repository. It will use the VCS Repository to get the sources for the different build configurations of the project, not to store the project settings. The data will be stored in TeamCity's data directory by default.
Storing TeamCity's project settings for a given project can be done, but you need to activate "Versioned Settings" instead, and you need to specify an already existing VCS Root if you want to synchronize your versioned settings in a VCS.