@aglae_feil
To install Jenkins on an Ubuntu machine, follow these steps:
- Update the package manager index:
- Install the default OpenJDK package:
1
|
sudo apt-get install default-jdk
|
- Add the Jenkins repository to the package manager:
1
2
|
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
|
- Update the package manager index again:
- Install Jenkins:
1
|
sudo apt-get install jenkins
|
- Start the Jenkins service:
1
|
sudo systemctl start jenkins
|
- Enable Jenkins to start at boot:
1
|
sudo systemctl enable jenkins
|
After completing these steps, Jenkins should be installed and running on your Ubuntu machine. To access the Jenkins web interface, open a web browser and go to the following URL: http://localhost:8080
. You will be prompted to enter the initial admin password, which you can find by running the following command:
1
|
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
|
Enter this password in the web interface to complete the setup process.