Jenkins Setup: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 33: Line 33:


#Install software properties package
#Install software properties package
#apt-get -y remove python-software-properties
#apt-get -y autoremove
apt-get -y install software-properties-common
apt-get -y install software-properties-common


Line 54: Line 52:
apt-get -y install openjdk-8-jdk
apt-get -y install openjdk-8-jdk
update-alternatives --config java
update-alternatives --config java
#echo "JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"" > /etc/environment
#source /etc/environment


# Install Jenkins, Nginx, Git, PHP 5.6 (latest) and Xdebug (for code coverage) and other tools
# Install Jenkins, Nginx, Git, PHP 5.6 (latest) and Xdebug (for code coverage) and other tools
Line 91: Line 87:


#Install and enable services
#Install and enable services
#systemctl enable nginx.service
update-rc.d nginx defaults
update-rc.d nginx defaults
#systemctl start nginx.service
service nginx restart
service nginx restart
#systemctl enable jenkins.service
update-rc.d jenkins defaults
update-rc.d jenkins defaults
#systemctl start jenkins.service
service jenkins start
service jenkins start