0
0
Jenkinsdevops~10 mins

Managing Jenkins URL and security - Interactive Code Practice

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

Complete the code to set the Jenkins URL in the configuration file.

Jenkins
JENKINS_URL=[1]
Drag options to blanks, or click blank then click option'
Ajenkins.local
Bhttp://localhost:8080/
C8080
Dlocalhost
Attempts:
3 left
💡 Hint
Common Mistakes
Using only hostname without protocol
Omitting the port number
2fill in blank
medium

Complete the command to restart Jenkins service after changing the URL.

Jenkins
sudo systemctl [1] jenkins
Drag options to blanks, or click blank then click option'
Arestart
Bstart
Cstop
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' when Jenkins is already running
Using 'stop' without starting again
3fill in blank
hard

Fix the error in the Jenkins security configuration to enable CSRF protection.

Jenkins
jenkins.security.csrf.[1]=true
Drag options to blanks, or click blank then click option'
Aenable
Bdisable
Cprotection
DcrumbIssuer
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'disable' instead of 'enable'
Using incorrect property names
4fill in blank
hard

Fill both blanks to configure Jenkins to use HTTPS with a certificate and key.

Jenkins
jenkins.security.https.[1]=[2]
Drag options to blanks, or click blank then click option'
AkeyStore
Bcertificate
C/var/lib/jenkins/keystore.jks
D/var/lib/jenkins/cert.pem
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing certificate with keystore
Using wrong file paths
5fill in blank
hard

Fill all three blanks to set Jenkins security realm, authorization strategy, and enable security.

Jenkins
jenkins.security.realm=[1]
jenkins.security.authorizationStrategy=[2]
jenkins.security.[3]=true
Drag options to blanks, or click blank then click option'
Ahudson.security.LDAPSecurityRealm
Bhudson.security.FullControlOnceLoggedInAuthorizationStrategy
CsecurityEnabled
DdisableSecurity
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'disableSecurity' instead of enabling
Mixing up realm and authorization classes