Skip to content

Instantly share code, notes, and snippets.

@jbutko
Forked from Savjee/commands
Last active August 12, 2016 05:53
Show Gist options
  • Save jbutko/1f9282364086c51854591b13b0ddf48c to your computer and use it in GitHub Desktop.
Save jbutko/1f9282364086c51854591b13b0ddf48c to your computer and use it in GitHub Desktop.
Jenkins-install-commands
# Install JRE & JDK
sudo apt-get install openjdk-7-jre
sudo apt-get install openjdk-7-jdk
# Download the security key for the Jenkins repository
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
# Add the key to the trusted keys for apt-get
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
# Update the list of packages
sudo apt-get update
# Install Jenkins
sudo apt-get install jenkins
# Start jenkins
server.ip:8080
# Copy unlock password
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
# restart jenkins
sudo /etc/init.d/jenkins restart
# jenkins upgrade
sudo apt-get update
sudo apt-get install jenkins
# pri connection refused errore treba restartnut jenkins service
sudo service jenkins stop
sudo service jenkins start
# treba nainstalovat Git plugin, Gitlab plugin a Gitlab Hook Plugin a nastavit projekt v gitlabe interny kvoli pristupu
# v jenkinse treba v Global Tool Configuration nainstalovat nodejs
# check log
cat /var/log/jenkins/jenkins.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment