Skip to content

Instantly share code, notes, and snippets.

@jubel-han
Forked from micheleorsi/gist:bd20912b2489f3432558
Last active August 29, 2015 14:14
Show Gist options
  • Save jubel-han/f20a54d806bf8e6bff29 to your computer and use it in GitHub Desktop.
Save jubel-han/f20a54d806bf8e6bff29 to your computer and use it in GitHub Desktop.
# set public key
# update VM
sudo apt-get update
# JAVA installation
sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java7-installer && sudo apt-get install oracle-java7-set-default
# install git
sudo apt-get install git zip ant
# download and install jenkins
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
# download and install sonarqube
sudo sh -c 'echo deb http://downloads.sourceforge.net/project/sonar-pkg/deb binary/ > /etc/apt/sources.list.d/sonarqube.list'
sudo apt-get update
sudo apt-get install sonar
sudo update-rc.d sonar defaults
sudo su jenkins
cd
mkdir libs
cd libs
# download and install maven
wget http://apache.panu.it/maven/maven-3/3.2.1/binaries/apache-maven-3.2.1-bin.tar.gz
tar -zxvf apache-maven-3.2.1-bin.tar.gz
# download and install latest Google App Engine
# wget https://storage.googleapis.com/appengine-sdks/featured/appengine-java-sdk-1.9.8.zip
# download and install previous GAE: https://console.developers.google.com/storage/appengine-sdks/deprecated/
# download and install GWT (different versions 2.6.0, 2.6.1, 2.7.0)
# wget http://storage.googleapis.com/gwt-releases/gwt-2.7.0.zip
# wget http://google-web-toolkit.googlecode.com/files/gwt-2.7.0.zip
exit
# now from your browser on your pc access to http://<your-address>:8080
# set rsa_private key in Credentials -> Global credentials
# set JDK in Manage Jenkins -> Configure System -> JDK
# set maven installation in Manage Jenkins -> Configure System -> Maven installation
# set ant installation
# set git username/email
# set SMTP in Manage Jenkins -> Configure System -> STMP configuration
# from 'Manage Jenkins' install 'Manage Plugins'
# install
# - 'Git Plugin'
# disable:
# - 'CVS Plugin'
# - 'External Monitor Job Type Plugin'
# - 'LDAP Plugin'
# - 'Subversion Plugin'
# - 'Windows Slaves Plugin'
# - Translation Assistance Plugin
# Configure security:
# click on Enable Security
# Security realm: Jenkins own database (let user sign-up and then remove option)
# Matrix-based security (add user)
# upload ~/.m2/settings.xml
# set to Manage Jenkins -> Configure System -> Maven Configuration
# configure user in sonar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment