Install Jenkins on ubuntu - part 2

Step 7 - Enable Jenkins site

Enable Jenkins web application. It is straightforward task as apache2 package offers the a2ensite and a2dissite commands (a2ensite allows to enable a site, while a2dissite allows to disable a site)

 root@jenkins:~# a2ensite jenkins
 Enabling site jenkins.
 To activate the new configuration, you need to run:
     service apache2 reload

Step 8 - Reload apache

Now, we reload apache to reflect the changes we made

 sudo service apache2 reload

Step 9 - Install jenkins

Now, we open http://my-jenkins.com in our browser and the following page should appear:

Now, you should fill the initial password from /var/lib/jenkins/secrets/initialAdminPassword and press Continue:

 root@jenkins:~# cat /var/lib/jenkins/secrets/initialAdminPassword
 81345...

Step 10 - Customize Jenkins

The Customize Jenkins should appear. In this page, you can select which plugins to install in order to extend Jenkins with additional features.

You can choose Install Suggested Plugins or Select plugins to install. When done, Jenkins will start to install plugins:

Step 11 - Create First Admin User

The Create First Admin User page should appear

Fill the details and click in Save and Finish.

Step 12 - Jenkins is ready

Congratulations, Jenkins is ready to use! Now, you can build,deploy and automate your project.