Looking for a JavaEE Architect or Potential Tech Co-Founder?
Please don't hesitate to contact me.

How to install artifactory and jenkins on ubuntu 12.04

This page is a summary of commands that need to be executed in order to install and setup artifactory and jenkins on Ubuntu 12.04.

Install artifactory
1.) Download the zipped file from artifactory:
>wget http://sourceforge.net/projects/artifactory/files/artifactory/2.6.4/artifactory-2.6.4.zip

2.) Install openjdk
>sudo apt-get install openjdk-7-jdk

3.) Set JAVA_HOME to /etc/environment
>sudo vi /etc/environment
//and add the following line:
JAVA_HOME= /usr/lib/jvm/java-6-openjdk-amd64/

4.) Unzip artifactory in your desired location:
>unzip artifactory-2.6.4.zip

5.) Go to the where you extract artifactory/bin, make the install.sh file executable and execute it:
>sudo chmod +x install.sh

6.) Tell artifactory where java is, by editing /etc/artifactory/default and add JAVA_HOME
JAVA_HOME= /usr/lib/jvm/java-6-openjdk-amd64/

7.) Check your artifactory's configuration:
>sudo service artifactory check

8.) Start artifactory:
>sudo service artifactory start

9.) Artifactory is now accessible in its default port 8081, http://localhost:8081/artifactory

The second part, how to install and configure Jenkins. Well it's pretty easy all you have to do is install and change the default port if you want :-)
>sudo apt-get install jenkins

*To change the port edit the file /etc/default/jenkins and change the key HTTP_PORT to whatever open port you like.
How to install artifactory and jenkins on ubuntu 12.04 How to install artifactory and jenkins on ubuntu 12.04 Reviewed by Edward Legaspi on Friday, October 19, 2012 Rating: 5

1 comment:

Luca Orlandi said...

From jenkins wiki

is is suggested to install from theis ppa http://pkg.jenkins-ci.org/debian/

Powered by Blogger.