-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsCLI
57 lines (29 loc) · 1.57 KB
/
JenkinsCLI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Step 1 : Update your package list to ensure you have the latest information about available packages:
sudo apt update
Step 2 : Install the default JDK (Java Development Kit) which is required for running Jenkins:
sudo apt install default-jdk
Step 3 : Add the Jenkins repository key to your system:
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
Step 4 : Add the Jenkins repository to your system's package sources:
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
Step 5 : Update your package list again to include the new Jenkins repository:
sudo apt update
Step 6 : Install Jenkins using the package manager:
sudo apt install jenkins
Step 7 : Start the Jenkins service:
sudo systemctl start jenkins
Step 8 : Enable Jenkins to start on boot:
sudo systemctl enable jenkins
Step 9 : Retrieve the initial admin password needed for the Jenkins setup:
sudo cat /var/lib/jenkins/secrets/initialAdminPassword
Step 10 : Access Jenkins:
- Open a web browser and navigate to http://your_server_ip_or_domain:8080
- Login with the password obtained in Step 9
- Install the suggested plugins provided by Jenkins.
- Wait for the plugin installation to complete.
- Create a user account for Jenkins.
- Configure the Jenkins URL according to your server's setup.
- Jenkins is now ready for use! Click "Start using Jenkins."
Congratulations, you have successfully installed and configured Jenkins on Ubuntu 23.10!