Enable Jenkins web application. It is straightforward task as apache2 package offers the
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
Now, we reload apache to reflect the changes we made
sudo service apache2 reload
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
root@jenkins:~# cat /var/lib/jenkins/secrets/initialAdminPassword 81345...
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:
Create First Admin User page should appear
Fill the details and click in
Save and Finish.
Congratulations, Jenkins is ready to use! Now, you can build,deploy and automate your project.