0
0
Jenkinsdevops~10 mins

Installing on Linux in Jenkins - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to update package lists on a Debian-based Linux system.

Jenkins
sudo apt-get [1]
Drag options to blanks, or click blank then click option'
Aupgrade
Binstall
Cupdate
Dremove
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' instead of 'update' which tries to install a package.
Using 'upgrade' which upgrades packages but does not update the list.
2fill in blank
medium

Complete the command to install Jenkins on a Debian-based Linux system.

Jenkins
sudo apt-get [1] jenkins
Drag options to blanks, or click blank then click option'
Aremove
Bpurge
Cupdate
Dinstall
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update' which only refreshes package lists.
Using 'remove' which deletes packages.
3fill in blank
hard

Fix the error in the command to start the Jenkins service on Linux.

Jenkins
sudo systemctl [1] jenkins
Drag options to blanks, or click blank then click option'
Astart
Bstop
Cdisable
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' which halts the service.
Using 'status' which only shows the current state.
4fill in blank
hard

Fill both blanks to add the Jenkins repository and import its key on Debian-based Linux.

Jenkins
wget -q -O - [1] | sudo apt-key [2] -
Drag options to blanks, or click blank then click option'
Ahttps://pkg.jenkins.io/debian-stable/jenkins.io.key
Badd
Cremove
Dhttps://jenkins.io/debian/jenkins.key
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong URL for the key.
Using 'remove' instead of 'add' for the apt-key command.
5fill in blank
hard

Fill all three blanks to create a Jenkins systemd service file with correct ExecStart and User.

Jenkins
[Service]
ExecStart=[1]
User=[2]
Restart=[3]
Drag options to blanks, or click blank then click option'
A/usr/bin/java -jar /usr/share/jenkins/jenkins.war
Bjenkins
Calways
Droot
Attempts:
3 left
💡 Hint
Common Mistakes
Running Jenkins as root user which is unsafe.
Using wrong ExecStart command that does not launch Jenkins.
Not setting Restart to 'always' to keep Jenkins running.