On Debian-based distributions, such as Ubuntu, you can install Jenkins through apt-get.
Prerequisite : JDK and JRE over 1.7
Prerequisite: Install Java 8
Add java source list.
Import GPG key
Install Java 8
Installation
Try browsing <host_name>:8080
https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Ubuntu
Initial Setup
First login
initial login is:
Account : admin
Passwd :(Check /var/lib/jenkins/secrets/initialAdminPassword)
Home Dir
/var/lib/jenkins
Process Management
start | stop | status | restart | force-reload jenkins,
or
User Management
- From home_dir(/var/lib/jenkins)/config.xml, edit
<useSecurity>false</useSecurity>
- From Web Console, Goto Manage Jenkins > Configure Global Security.
- Select the “Enable Security” check box.
- Select “Jenkins Own User Database” for the security realm and then select “Logged in Users can do anything” (or “matrix based strategy” for multiple users with different permissions) for the Authorization.