How to install jenkins on ubuntu
How to install jenkins on ubuntu
Depending on which Java version you want to install, Java 8 or 17, run
one of the following commands:
sudo apt install openjdk-17-jre
check java version:
java -version
Add the Jenkins software repository to the source list and provide the
authentication key:
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
It will take approximate 2 to 5 minutes and then next screen will come up
The setup prompts to either Install suggested plugins or Select
plugins to install. It’s fine to simply install the suggested plugins.
Creating a Jenkins freestyle project involves several steps:
Once the project is created, click on the “Build Now” link to run the
project.
Check the console output for “this is my first jenkins
pipeline” message.