Can you create a project with versioned settings via API?

Background: I'm building some scripts to dynamically create a TeamCity project via API to kick start new projects. The scripts are fairly dynamic since I'm supporting a range of choices for the application technology that I'm kick starting e.g. Rails, Sinatra, Dropwizard, SpringBoot, etc. The projects themselves are also fairly complex as they are a full continuous delivery pipeline with multiple subprojects with several build steps in each.

Problem: It seems that TeamCity v9 feature of versioned settings would be an ideal way to store this project config but I can't find a way to create a new project via API and enable synchronised version settings programatically. I'd like to avoid having the user actually log on to the TeamCity server until the project is fully created. I'd also like to avoid copying an existing project too.

Question: Is there a way to create a project with versioned settings via API?

Thanks!

Pete

3 comments
Comment actions Permalink

Hi Pete,

could you please clarify what API do you mean: REST API or a java plugins API?

0
Comment actions Permalink

Oh sorry for not making that clear - it's the REST API.

0
Comment actions Permalink

Hi Pete,

versioned settings options are stored in pluginData/plugin-settings.xml inside a project directory. At this time REST API doesn't provide an ability to edit such settings, please create a request in the tracker for such an ability.

As a workaround you can send the same request as sent by the browser when you edit the plugin-settings.xml at Administration > Diagnostics > Browse Data Directory.

0

Please sign in to leave a comment.