General utility scripts for dev-ops.
Contains Python scripts for maintaining CI servers and projects.
cd continuout-integration
mkvirtualenv ir5-ci
pip install -r requirements.txt
nosetests tests/jenkins/ tests/teamcity/
Included in the /continuous-integration scripts is an archive for teamcity projects.
usage: teamcity.py [-h] [-n NAME] {archive,unarchive,ls}
- Requires virtualenvwrapper
cd ./continuos-integration
mkvirtualenv dev-ops -r requirements.txt --system-site-packages
workon dev-ops
python teamcity.py
The script will assume that projects to archive are created/installed in the default directory for TeamCity found in ~/.BuildServer/config/projects
python teamcity.py archive -n MyProject
Upon successful archival, MyProject will become a .zip file that can be unarchived at a later date.
Note TeamCity will need to be restarted in order for the project to be removed from the registry. You can always unarchive and restart TeamCity at a later date to get the project back.
The script will assume that a previous archived and zipped files resides in ~/.BuildServer/config/projects.
python teamcity.py unarchive -n MyProject
Upon successful unarchival, the .zip will be trashed and the project folder restored.
Note TeamCity will need to be restarted in order for the project to be removed from the registry
Allows you to list the previously archive projects using the teamcity python script.