Install Jenkins on Ubuntu using apt-get

The commands look like the following:

# If Java has not yet been installed, install it now
sudo apt install openjdk-8-jre-headless
# Install Jenkins on an Ubuntu system
wget -q -O - | sudo apt-key
add -
sudo sh -c 'echo deb binary/ >
sudo apt-get update
sudo apt-get install jenkins

When the install completes, you will want to open your browser and browse to port 8080 on the system to finish the setup and configuration of your Jenkins system.
This will include entering the admin password and then deciding which plugins to install as part of the initial deployment of your Jenkins server. I recommend using the set recommended by Jenkins as it is a great starting point:

you can begin creating jobs for it to execute to confirm that it is working as desired.
Let’s create a Jenkins Job!:
Go to dashboard and then click the New Item, write the job name “hello-docker-test”, select the pipeline for the type of job you want to create and then click the OK button, scroll down to the Pipeline script input and enter the following script and then click save:

// Our Docker hello world pipeline script, named "hello-docker-test"
node {
stage('Hello via Alpine') {
docker.image('alpine:latest').inside {
sh 'echo Hello DQS Readers - from inside an alpine container!'

click the Build Now link to launch the Jenkins job. The following is what it might look like this time:

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

lfl 9zMy 4ae

Please type the text above: