Jenkins + gradle on Ubuntu : installation

In this post, you will find a step-by-step instruction how to install jenkins + gradle on ubuntu machine.
  • 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 (, 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
  • 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).

Tags: ,

Leave a Reply

Spam Protection by WP-SpamFree