Jenkins / Java configurations
Installation
wget -q -O - https://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
Configuration:
http://www.vogella.com/tutorials/Jenkins/article.html#jenkinsconfiguration
Find wich java:
$ readlink -f `which java` -------> /usr/bin/java
Criar env. de JAVA_HOME:
- nano .zshrc
- add to end of file: export JAVA_HOME=`readlink -f \`which java\``
Para o ubuntu normal:
- nano ~/.bashrc