In this post, you will find a step-by-step instruction how to install jenkins + gradle on ubuntu machine.
- Install jenkins
- Generate a ssh key for jenkins
- log in as jenkins (with sudo command)
- generate ssh key: http://www.petefreitag.com/item/532.cfm
- Add public key to the git server
- Git
- Install git (with apt-get)
- login as jenkins (with sudo)
- Adding git server to known hosts
- try to clone git, you should see the warning that the server is unknown host,
- accept adding the host to known hosts and cancel the cloning
- Install gradle
- Download gradle ( http://gradle.org/downloads), unpack it to, e.g., /usr/local/lib/gradle ,
- open /etc/profile and add the following two lines:
- export GRADLE_HOME=/usr/local/lib/gradle
- export PATH=$PATH:$GRADLE_HOME/bin
- reboot the machine
- Install sun jdk: http://docs.oracle.com/javase/7/docs/webnotes/install/linux/linux-jdk.html (tar -xzf)
- open /etc/profile, set up the JAVA_HOME
- export JAVA_HOME=/usr/lib/jvm/jdk1.7.0
- export PATH=$PATH:$JAVA_HOME/bin
In the next post we will take a look how to install git plugin in Jenkins (it is quite straightforward).