将 Teamcity 从版本 4 升级到版本 6,而不丢失构建历史记录
有人有将 Teamcity 服务器从版本 4 升级到版本 6 而不会丢失所有构建历史记录的经验吗?
由于我无法在现有的 Teamcity 服务器(版本 4.5.4)上运行直接升级,因此我的计划是将最新的 Teamcity 服务器安装到另一台主机,并尝试导入以某种方式从旧 Teamcity 服务器导出的数据。
Does anyone have experience of upgrading Teamcity server from version 4 to version 6 without losing all the build history?
Since I am not able to run a direct upgrade on our existing Teamcity server (version 4.5.4), my plan was to install a latest Teamcity server to another host and trying to import the data that somehow exported from the old Teamcity server.
After reading both documentation for version 4 and version 6, I am not sure how to proceed. Does anyone have any suggestion on this? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题解决后我忘记再回过头来了。最近,我再次将 Teamcity 安装从 6.5 版本迁移并更新到 7.1.4,没有丢失任何历史记录或数据,所以我想我最好分享一下我所做的事情。
基本上我所做的是:
.sql
文件中。就我而言,我们使用 MySQL,所以我使用了类似的内容: mysqldump -u User -pPassword teamcity_db_name > teamcity.sqlrsync
从旧版本 4 Teamcity 服务器复制.BuildServer
文件夹。.sql
转储:mysql -u User -pPassword teamcity_db_name
mysql -u User -pPassword teamcity_db_name
teamcity.sql
.tar.gz
分发文件解压缩到某个位置,例如/home/teamcity/Teamcity
/home/teamcity /Teamcity/bin/teamcity-server.sh start
http://:8111/
,它会要求通过查找进入维护模式>秘密/home/teamcity/Teamcity/logs/
文件夹中的teamcity-server.log
中的令牌。.BuildServer
文件夹的格式。版本 4 对我来说都非常顺利 -> 6.升级及版本6-> 7 升级。
I forgot to circle back to this question after it was solved. Recently I have again migrated and updated out Teamcity installation from version 6.5 to 7.1.4 without losing any history or data, so I think I'd better share what I did.
Basically what I did were:
.sql
file. In my case, we uses MySQL, so I used something like:mysqldump -u User -pPassword teamcity_db_name > teamcity.sql
rsync
to copy the.BuildServer
folder from the old version 4 Teamcity server..sql
dump:mysql -u User -pPassword teamcity_db_name < teamcity.sql
.tar.gz
distribution file to a location, say/home/teamcity/Teamcity
/home/teamcity/Teamcity/bin/teamcity-server.sh start
http://<your new teamcity server>:8111/
and it will ask to enter maintenance mode by finding a secret token inteamcity-server.log
in/home/teamcity/Teamcity/logs/
folder..BuildServer
folder.It went extremely well for me both for version 4 -> 6 upgrade and version 6 -> 7 upgrade.