penguin&160; A small script developed to upgrade TeamCity with no or less effort! a very simple script, easily extensible.

TeamCity is a continuous integration and build management system. With TeamCity, you can set up a build server within minutes and enjoy out of the box continuous unit testing, code quality analysis, and early reporting on build problems — even without leaving your favorite IDE. TeamCity offers a gentle learning curve, so you can quickly improve your release management practices by gradually adopting its advanced features and capabilities.”

&160;

&160;

Limitations

This script only work if

  • You run TeamCity using the standalone package provided at linux" target="_blank">http://www.jetbrains.com/teamcity/download/index.htmllinux under Linux
  • You use MYSQL as an external DB
  • You must run it as root (because getting the latest software with wget may not otherwise be possible)
  • This script is not endorsed by JetBrains nor official.
  • GNU/GPL version 3, use at your own risk, provided as IS

It must be safe to use, as

  • It backup first your database
  • it archive your existing TeamCity installation with a timestamp
  • it also copy any customizations (server.xml, agent build.properties) you have made to the new installation
  • It download automatically and extract teamcity

Usage

# ./updateTeamCity.sh newVersionNumber installPathHome

example:

/home/teamcity > ./updateTeamCity.sh 4.5.4 /home/teamcity

Output of the script

stopping current TeamCity at /home/teamcity/TeamCity
done!
Read database settings from database.properties
Moving current TeamCity /home/teamcity/TeamCity to /home/teamcity/TeamCity.20093830
done!
Saving database to file system at
/home/teamcity/TeamCity.20093830/teamcity.sql
done!
getting the latest version at http://download.jetbrains.com/teamcity/TeamCity-4.5.4.tar.gz
done!
Unpacking new version
done!&160;
Copying previous customizations
done!
Copying required 3rd party librairies
done!
Copying local agent build.properties to new TeamCity
done!
Starting new TeamCity
done!

Don’t expect more at the moment, it has been created to make the update of TeamCity faster for ME now. Feedback is appreciated, and improvement/ideas are always welcomed.

GET THE SCRIPT updateTeamCity HERE

comments powered by Disqus

You might like also

Display the short GIT version hash as build identifier in TeamCity
TeamCity is a Continuous integration and build management server from JetBrains. As the first build step, create a custom script that reads %build.number%, and uses service messages to append the short GIT hash programmatically. Here’s an example using a bash script pasted right into the TeamCity GUI (Runner type: Command Line, Run: Custom Script): GIT_HASH=%build.vcs.number% GIT_HASH_SHORT=$ echo "#teamcity[buildNumber '#$']" &160; …
1937 Days ago
Latest JetBRAINS Teamcity 5 plugin for the Tux Droid
I did refresh the tuxdroid teamcity plugin project a bit on request to Jasper Moltke Nygaard (Danmark ) TeamCity is a Java-based build management and continuous integration server from JetBrains, creators of IntelliJ IDEA and ReSharper With this plugin you can notify your Tux Droid with your TeamCity build results. After login you can find the new notificator Tux Droid in your notification settings. You need your Tux Droid server IP and port to connect your Tux to TeamCity. After …
3259 Days ago
Running Selenium Grid and a set of Remote control as NT services
Selenium has various projects that can be combined with each other to create a robust testing environment. Selenium IDE: a Firefox add-on to record and playback tests in Firefox. Selenium Remote Control: a client/server system to control web browsers locally or on other computers, using almost any programming language and testing framework. Selenium Grid: transparently distribute your tests on multiple machines so that you can run your tests in parallel, cutting down the time required for running in-browser test suites. …
3278 Days ago
Install Atlassian Confluence in 15 minutes
In this small post, you will learn how to install Atlassian Confluence in no more than 15 minutes. It do not replace the online installations manual (The Confluence Installation Guide is for people who are installing Confluence for the first time. Check the requirements and supported platforms, then download and install Confluence), but mainly complement it, with some of the best Linux practices (ADDED points).         How to install Atlassian Confluence in 15 minutes Create user and …
3397 Days ago
No Thumbnail was found
Amazon EC2 and Virtual Agents Take avdantage of cloud computing with TeamCity by putting Build Agents on Amazon EC2. After your Build Agents' AMIs (Amazon Machine Images) are registered, the TeamCity server will account for those virtual machines in its build scheduling and will automatically do a suspend/resume job on them, based on the load and build queue status. Better Support for Maven Version 5.0 has many Maven support improvements under the hood. These include the creation of Maven-based build …
3458 Days ago
Adding Google analytics to Atlassian Bamboo
As I found no better tutorial on Internet, here is a very very short how to add Google analytics to Atlassian Bamboo, it require a bit of hacking, and these kind of changes will be lost after each upgrade of Bamboo.. Edit the file webapps/ROOT/start.ftl Now put the usual code you get after creating a new analytics profile just before the </body> …
3673 Days ago
Continuous integration server Bamboo up and running
My Bamboo continuous integration server is now fully functional and available at&160; http://bamboo.waltercedric.com/ &160; &160; &160; Remember Atlassian is providing free license for Open Source Projects: Atlassian supports and believes in the Open Source movement - Bamboo utilizes a number of good Open Source components, and Atlassian developers are committers on a large number of Open Source projects. To give back to the open source community (and hopefully improve the quality of those projects!), Bamboo is free for any Open …
3676 Days ago
TeamCity 4.5 up and running
Today JetBrains announces the public availability of TeamCity 4.5, it's award-winning distributed build management and continuous integration tool. With TeamCity, you can set up a build server for your projects within minutes and enjoy out of the box continuous unit testing, code quality analysis, and early reporting on build problems - even without leaving your favorite IDE. TeamCity offers a gentle learning curve, so you can quickly improve your release management practices by gradually adopting its advanced features and capabilities. …
3679 Days ago
Installing JIRA standalone on OpenSuse 11.x/ Plesk 9
JIRA is a proprietary enterprise software product, developed by Atlassian, commonly used for bug tracking, issue tracking, and project management. JIRA is widely deployed within public open source projects and has over 12,000 customers in over 100 countries. Visit my JIRA instance at http://bugs.waltercedric.com or http://jira.waltercedric.com&160; This is now officially my new Tracker. (Thanks to Atlassian for giving me an open source license) …
3686 Days ago
Installing TeamCity standalone on OpenSuse 11.x/ Plesk 9
After fighting many days.. with their container versions (many webapps in the same tomcat with mod_proxy, mod_proxy_ajp), I did install JetBrains TeamCity, Atlassian Jira and Bamboo as standalone on my server. TeamCity is a Java-based build management and continuous integration server from JetBrains, creators of IntelliJ IDEA and ReSharper. &160; What will happen next? TuxDroid for Teamcity plugin will be build there (MAVEN2) the first component for Joomla! will be build there as well (using Maven 4 PHP) …
3686 Days ago