Jenkins on Ubuntu

Check if java is installed

Java should be installed in Ubuntu machine, to check if Java is installed, start a terminal and typing in java -version , If Java already installed, you will see Java version show up.

Install Process

Step 1 : Open terminal and typing in following command

wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key sudo apt-key add -

The above code do following job :

  • Jenkins will be launched as a daemon up on start. See /etc/init.d/jenkins for more details.
  • The 'jenkins' user is created to run this service.
  • Log file will be placed in /var/log/jenkins/jenkins.log. Check this file if you are troubleshooting Jenkins.
  • /etc/default/jenkins will capture configuration parameters for the launch like e.g JENKINS_HOME
  • By default, Jenkins listen on port 8080. Access this port with your browser to start configuration.

Step 2 : Open the file /var/log/jenkins/jenkins.log and copy the default password which is automate generated during installation

Step 3 : Open browser and access to Jenkins at http://localhost:8080/ then paste the password above to unlock jenkins. Click to Continue button

Step 4 : Click on Install suggested plugins

Step 5 : Enter your user name, password for a new admin.

Step 6 : That it, now jenkins ready to use, click to Start using Jenkins

From now Jenkins already installed in Ubuntu as daemon service, so every time you power on machine, Jenkins will start and ready to access at http://localhost:8080/

results matching ""

    No results matching ""