DevOps(Day-28) : How to install jenkins and create a freestyle project
Installing Jenkins
- Update your system
sudo apt update
- Install java
sudo apt install openjdk-11-jre
- Validate Installation
java -version
It should look something like this
- Just copy these commands and paste them onto your terminal.
curl -fsSL https://pkg.jenkins.io/debian/jenkins.io.key | sudo tee \ /usr/share/keyrings/jenkins-keyring.asc > /dev/null echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ https://pkg.jenkins.io/debian binary/ | sudo tee \ /etc/apt/sources.list.d/jenkins.list > /dev/nullsudo apt-get update sudo apt-get install jenkins
Now navigate to the Url with port 8080 and navigate to the path for admin password.
Now, install the suggested plugins.
Now, create the user and provide the details.
Finally, Login to the Url
Task
Create a freestyle project and display “hello world”
Go to new item and select freestyle project.
Provide the details in general settings.
Go to Build environment and then build step. Write the required code.
Click on build now to create the project.
Now, check the console output
Finally the Project is completed.
Thanks for reading my article. Have a nice day.
Comments
Post a Comment