Jenkins
m (→Links) |
(Update for reprepro changes; see https://gerrit.wikimedia.org/r/#/c/42741/) |
||
| Line 12: | Line 12: | ||
http://pkg.jenkins-ci.org/debian-stable/ | http://pkg.jenkins-ci.org/debian-stable/ | ||
| − | Per ops convention, the packages need to be copied to apt.wikimedia.org | + | Per ops convention, the packages need to be copied to apt.wikimedia.org. [[Reprepro]] is configured to do so semi-automatically, so one only needs to do |
| − | + | <pre>reprepro checkupdate precise-wikimedia</pre> | |
| − | + | verify the output and then | |
| − | + | <pre>reprepro update precise-wikimedia</pre> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | <pre>reprepro | + | |
| − | + | ||
| − | + | ||
=== Deploying === | === Deploying === | ||
Latest revision as of 10:09, 8 January 2013
Jenkins is a software coming from the Java community, to assist in building a continuous integration system. It offers a highly modular system which has allowed other community to add their own plugins (such as GIT, PHP...). Wikimedia Foundation is using Jenkins to run MediaWiki tests and generates nightly build of its Android applications.
Contents |
[edit] Upgrading
Upstream does a release every week and a stable one from time to time, also named Long Term Support (LTS). We will certainly want to at least upgrade to LTS whenever it is released and possibly to a snapshot in between depending on bug fixes.
[edit] Updating
Debian packages can be installed on Ubuntu and are made available at:
http://pkg.jenkins-ci.org/debian/ http://pkg.jenkins-ci.org/debian-stable/
Per ops convention, the packages need to be copied to apt.wikimedia.org. Reprepro is configured to do so semi-automatically, so one only needs to do
reprepro checkupdate precise-wikimedia
verify the output and then
reprepro update precise-wikimedia
[edit] Deploying
Jenkins is deployed on gallium host, reserved for continuous integration purposes. It can safely be restarted at anytime as long as the developer community is aware about it ( #mediawiki / #wikimedia-dev ). You will most probably want to have one continuous integration person floating around while doing the upgrade since plugin dependencies might broke once Jenkins is upgraded.
To upgrade the package, just apt-get update && apt-get upgrade jenkins. (or tell puppet to ensure "latest")
[edit] How to
[edit] Restart Jenkins
/etc/init.d/jenkins restart
Some platform engineering people are also allowed to restart it through sudo
[edit] Logs
Main application logs:
tail -f /var/log/jenkins/jenkins.log
[edit] Disable plugin
Jenkins plugins are placed in /var/lib/jenkins/plugin/ and ends with a .hpi extension. To disable a plugin, renames it to .hpi.disable and restart Jenkins.
[edit] Links
[edit] Worklog
Issues about upgrade done on April 5th 2012 :