Skip to content

Instantly share code, notes, and snippets.

@clemherreman
Last active December 11, 2015 07:09
Show Gist options
  • Save clemherreman/4564297 to your computer and use it in GitHub Desktop.
Save clemherreman/4564297 to your computer and use it in GitHub Desktop.
Setup jenkins on Debian 6.0.6
# Java is needed
sudo apt-get install openjdk-6-jdk
# Install jenkins for their repository
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
# Optional: setup pear
wget http://pear.php.net/go-pear.phar
php go-pear.phar
# Setup php tools
pear config-set auto_discover 1
pear install pear.phpqatools.org/phpqatools pear.netpirates.net/phpDox
# Install svn or git
sudo apt-get install git
# Install analysis jenkins plugins
wget http://localhost:8080/jnlpJars/jenkins-cli.jar
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin checkstyle cloverphp dry htmlpublisher jdepend plot pmd violations xunit
java -jar jenkins-cli.jar -s http://localhost:8080 safe-restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment