ParrotSecurity 3.8: Install Jenkins for CI server

Table of Contents

1 Install Jenkins

The following script will install Jenkins and enable http access via Apache.

#!/bin/shset -ejenkins_install(){ wget -q -O – | sudo apt-key add – echo deb binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list sudo apt-get update -y sudo apt-get install -y jenkins openjdk-8-jdk cat <<EOF | sudo tee -a /etc/default/jenkinsJENKINS_ARGS=”$JENKINS_ARGS –prefix=$PREFIX”JENKINS_ARGS=”$JENKINS_ARGS -Djenkins.install.runSetupWizard=false”EOF sudo systemctl enable jenkins sudo systemctl restart jenkins}apache_install(){ sudo apt install -y apache2 cat << EOF | sudo tee /etc/apache2/conf-available/jenkins.confProxyRequests OffProxyPreserveHost OnProxyPass /jenkins http://localhost:8080/jenkinsProxyPassReverse /jenkins http://localhost:8080/jenkinsRequestHeader set X-Forwarded-Proto “https”RequestHeader set X-Forwarded-Port “443”AllowEncodedSlashes NoDecode<Proxy http://localhost:8080/jenkins> Order deny,allow Allow from all</Proxy>EOF for mod in ssl proxy proxy_http headers; do sudo a2enmod ${mod} done sudo a2enconf jenkins sudo a2ensite default-ssl.conf sudo systemctl enable apache2 sudo systemctl restart apache2}jenkins_main(){ jenkins_install apache_install}jenkins_main

2 Access to Jenkins

Access to the following URL.



Android | Linux | SDL - Narrow Escape