yalegria / devops-git-actions

0 stars 0 forks source link

How to Install Jenkins on Mac and Ubuntu #17

Open Voxelghiest opened 2 years ago

Voxelghiest commented 2 years ago

Installing Jenkins

The process is almost exactly the same for either MacOS or Ubuntu.

  1. Make sure Java is already installed on your device. If not, head to the java download page and download the appropriate version. The Jenkins documentation states that Jenkins works best with Java 11 or higher, but I was able to run it on Java 8.
  2. Go to https://www.jenkins.io/download/ and download the "Generic Java Package" version of Jenkins.
  3. Navigate to the folder containing the package in your terminal, and run java -jar jenkins.war --httpPort=8080.
  4. As it is installing, it will display a password. Copy that password for the next step.
  5. Open your browser and go to http://localhost:8080. Once there, input the password you copied earlier to continue setting up.
  6. You will then have the option to select plugins to install with Jenkins, if you want. I advise installing the GitHub integration plugins.
  7. Create an admin account to use with Jenkins. This is how you will log into the service in the future.
  8. All done! You will end up on the Jenkins dashboard once you finish, which looks like this (although yours won't have any projects listed): Jenkins Landing Page

You can also go to the Getting Started section of the Jenkins website, which outlines many of the same instructions for installation.

yuriaru commented 2 years ago

@Voxelghiest could you please add a screenshot of the landing page after installation.

Voxelghiest commented 2 years ago

I have updated my comment to include an image of the landing page, as requested :)