spacer
GuestLog inor Sign up?
 
var a = [{text: "Everything", id: "", empty: true, styleClass: "empty"},{text: "AppCode (OC)", id: "22-59", empty: false},{text: "Astella (AS)", id: "22-70", empty: false},{text: "CFML PLugin (CFML)", id: "22-37", empty: false},{text: "Clojure (CLJ)", id: "22-29", empty: false},{text: "IntelliJ IDEA (IDEA)", id: "22-22", empty: false},{text: "IntelliJ IDEA: Backlog (IDEABKL)", id: "22-20", empty: false},{text: "Kotlin (KT)", id: "22-68", empty: false},{text: "MPS (MPS)", id: "22-10", empty: false},{text: "NET Platform (NP)", id: "22-49", empty: false},{text: "PhpStorm (WI)", id: "22-19", empty: false},{text: "Profiler (PROF)", id: "22-100", empty: false},{text: "PyCharm (PY)", id: "22-36", empty: false},{text: "ReSharper (RSRP)", id: "22-42", empty: false},{text: "ReSharper Plugins (RSPL)", id: "22-44", empty: false},{text: "Ruby (RUBY)", id: "22-25", empty: false},{text: "Scala (SCL)", id: "22-24", empty: false},{text: "TeamCity (TW)", id: "22-0", empty: false},{text: "Vim Plugin (VIM)", id: "22-43", empty: false},{text: "Web Dev (WEB)", id: "22-96", empty: false},{text: "YouTrack (JT)", id: "22-1", empty: false},{text: "dotCover (DCVR)", id: "22-27", empty: false},{text: "dotPeek (DOTP)", id: "22-57", empty: false},{text: "dotTrace (DTRC)", id: "22-11", empty: false},{text: "z IDEA: Development (old) (IDEADEV)", id: "22-21", empty: false}]; cr.findGlobal("l.I.sp.filterFolder", []).update(a);
×
Back to Search
Project
TeamCity
Priority
Normal
Type
Feature
State
Open
Assignee
Pavel Sher
Subsystem
Server
Affected versions
Teamcity 3.0 (Benares 5985)
Fix versions
Backlog
Fixed in build
No Fixed in build
Fixed in builds
no build yet
  • Created by   Igor Karpov
    5 years ago (17 Dec 2007 14:33)
  • Updated by   Michael Kuzmin
    2 weeks ago (29 Jan 2013 21:25)
  • Jira: TW-4124
    (history, comments)
TW-4124 Export and Import project configurations
30
Issue is visible to: All Users
  The issue is visible to the selected user group only
Links — Show as list
  • Relates to:
I would like to export and import project configurations to/from file.
(There are some nasty problems with TC that I would like to workaround, and I need to remove and re-create projects in it.
Project configurations are very verbose (~15-20 VCS root, checkout rules..) so it's really hard to recreate it by hand.)
Comments (11)
 
History
 
Linked Issues (?)
 
spacer spacer
  Yegor Yarko
18 Dec 2007 14:21
5 years ago
#
Igor,

Actually, build configurations are stored in XML format in the .BuildServer/config/<projectName>/project-config.xml file.

As a workaround, you can edit the files manually.
With some caution, you can edit the the files (server restart is not needed, all the changes should be picked up on the fly). Be sure not to breakl the XML structure and provide new "id" for the "build-type" if you create new build configurations.
spacer spacer
  Yegor Yarko
14 Jan 2008 11:45
5 years ago
#
Probably some UI to download/upload build configurations in .xml files (part of project-config.xml and VCS roots)
spacer spacer
  Yegor Yarko
01 Oct 2009 19:19
3 years ago
#
Some notes on manual moving projects from one server to another.

There is no feature to add build configuration settings from one TeamCity server to another. Please plan your TeamCIty deployment in advance with this in mind.

With some manual work it is still possible to transfer project and build configuration settings. This approach is described below, but it requires careful XML editing and can be used only if you need to transfer many projects with complex settings. It's usage is not recommended and is discouraged.



For the time being it is not possible to transfer builds information (history, artifacts, etc.)

Both the source and the target TeamCity servers need to be exactly the same version (build number).

For the settings transfer, you need to get a set of files from .BuildServer\config directory from TeamCity data directory or source server, modify ids within xml files and put it in the corresponding place of TeamCity data directory of target server. You can do this even without server restart.

The files to process:
Directory: .BuildServer\config\<your project name>
You can safely drop project-config.xml.* files
In the file project-config.xml you might need to modify the tags listed below to ensure ids do not clash with ids on the target server.

<project id="project58">
 <build-type id="bt133"...
...
    <vcs-entry-ref root-id="10"...
...
    <settings>
      <artifact-dependencies>
        <dependency sourceBuildTypeId="bt413" ...
...
      <dependencies>
        <depend-on sourceBuildTypeId="bt363" />
 ...
      <build-triggers>
        <triggered-by buildTypeId="bt365" />
...


Relevant tags of a file: .BuildServer\config\vcs-roots.xml
This file stores all VCS roots. From this file you will need to get the "vcs-root" tags that are referenced in "vcs-entry-ref" subtag of "build-type" tag in project-config.xml file, probably modify the ids in both places and add the resulting vcs-root into .BuildServer\config\vcs-roots.xml file on the target server.

Basically, all the references by id's need to be updated. They can be configured in various places around the system including user-specified configuration settings (e.g. "dep.btXX." properties references), plugin-settings.xml file, etc.

To preserve the current build numbers, you will also need to update names of "bt132.buildNumbers.properties" files to have the ids as in corresponding "build-type" tags of project-config.xml files.

Please create backup copies of all modified data. Backup of the target server is also recommended.

See also a section of our doc that describes .BuildServer directory files.
spacer spacer
  Yegor Yarko
22 Mar 2010 18:12
2 years ago
#
Ans one more request for servers merge.
spacer spacer
  Marina Grechko
04 May 2010 12:13
2 years ago
#
One more request www.jetbrains.net/devnet/message/5262213
spacer
  Christoph Keller
28 Jul 2011 14:11
18 months ago
#
I would love to see these functionality. A little more background information:
We currently use TC 6.5 Prof.

We have a few projects/builds which are used all the time and many other which are only needed temporarily. However the configuration of the projects/build is rather complex. It would be cool if we could export them if we don't need them anymore, so we could just delete them. If we would need them later (e.g. new development after a year) we could simply import it again. In this case we don't mind to loose the history, artifacts, ... Only the configuration is important.
spacer
  Ivan Boyko
26 Jan 2012 14:02
12 months ago
#
I'm afraid we also are doomed to go through this painful migration exercise pretty soon, as we have 2 TC installations that need to be merged.
The possibility to keep history and logs (not artifacts) would be great feature for us, as I'm not sure I will be able to persuade dev teams to accept loss of them.

But there is also another thing that would be nice to migrate (export\import) - definitions of Groups. In our case we have 1 Group for each project called "<project> developers" containing "Project Developer" Role for that project. So we just include people (their User names) into specific Groups to give them access.
I found only Roles definitions in .Buildserver/config/roles-config.xml, so I guess Groups and their Users are stored somewhere in the database.
spacer spacer
  Yegor Yarko
26 Jan 2012 17:46
12 months ago
#
Ivan,

The possibility to keep history and logs (not artifacts) would be great feature for us

Unfortunately, so far there is no technical ability to implement this in foreseeable future.

Users and user groups are stored in the database. In theory, the data can be moved manually in the database format, however editing database directly is not recommended. Another alternative would be to write a Java plugin that will use openAPI to create necessary groups)
spacer spacer
  Michael Kuzmin
01 Feb 2012 16:50
12 months ago
#
a request to copy configurations between different TeamCity versions
devnet.jetbrains.net/thread/433695
spacer spacer
  Michael Kuzmin
19 Apr 2012 16:48
9 months ago
#
also requested in devnet.jetbrains.net/thread/435303
spacer spacer
  Yegor Yarko
20 Sep 2012 14:41
4 months ago
#
also related: devnet.jetbrains.net/message/5453386
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.