Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outdate Jenkins install Replace with new version #320

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 20 additions & 17 deletions 2024/day07/solution.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,31 @@
sudo systemctl status docker

- **Installing Jenkins**
- Add the Jenkins repository key to the system:
- Install Java: First, ensure you have Java installed (OpenJDK 17 recommended):
```bash
curl -fsSL https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
- Add the Jenkins repository:
sudo apt update
sudo apt install fontconfig openjdk-17-jre
java -version
- Add the Jenkins repository key: Download and add the Jenkins keyring:
```bash
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
- Update the package list:
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
- Add the Jenkins repository: Add the Jenkins repository to your sources list:
```bash
sudo apt update
- Install Jenkins:
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
- Update the package list: Refresh your package index:
```bash
sudo apt install jenkins
- Start Jenkins:
sudo apt-get update
- Install Jenkins: Install Jenkins:
```bash
sudo apt-get install jenkins
- Enable and start Jenkins: Enable Jenkins to start on boot and start the
service:
```bash
sudo systemctl enable jenkins
sudo systemctl start jenkins
- Note:
- First, check whether JAVA is installed or not.
```bash
java -version
- If you have not installed
```bash
sudo apt install default-jre
- Check Jenkins status: Verify that Jenkins is running:
```bash
sudo systemctl status jenkins

Output
![image](https://github.com/Bhavin213/90DaysOfDevOps/blob/master/2024/day07/image/task1.png)
Expand Down Expand Up @@ -164,4 +167,4 @@ Systemctl is used to examine and control the state of the “systemd” system a
![image](https://github.com/Bhavin213/90DaysOfDevOps/blob/master/2024/day07/image/task6.png)

- Jenkins Logs:
![image](https://github.com/Bhavin213/90DaysOfDevOps/blob/master/2024/day07/image/task6-1.png)
![image](https://github.com/Bhavin213/90DaysOfDevOps/blob/master/2024/day07/image/task6-1.png)