0
0
Jenkinsdevops~10 mins

Tools directive in Jenkins - Interactive Code Practice

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

Complete the code to specify the JDK tool in a Jenkins pipeline.

Jenkins
tools {
    jdk '[1]'
}
Drag options to blanks, or click blank then click option'
AJDK11
BMaven3
CGit
DNodeJS
Attempts:
3 left
💡 Hint
Common Mistakes
Using a tool name that is not configured in Jenkins.
Confusing JDK with other tools like Maven or Git.
2fill in blank
medium

Complete the code to specify Maven tool in a Jenkins pipeline.

Jenkins
tools {
    maven '[1]'
}
Drag options to blanks, or click blank then click option'
AMaven3
BGit
CJDK8
DNodeJS
Attempts:
3 left
💡 Hint
Common Mistakes
Using a tool name that is not Maven.
Mixing tool names like JDK or Git instead of Maven.
3fill in blank
hard

Fix the error in the tools directive to correctly specify NodeJS.

Jenkins
tools {
    nodejs '[1]'
}
Drag options to blanks, or click blank then click option'
AJDK11
BGit
CMaven3
DNodeJS14
Attempts:
3 left
💡 Hint
Common Mistakes
Using a tool name that is not NodeJS.
Confusing NodeJS with other tools.
4fill in blank
hard

Fill both blanks to specify JDK and Maven tools in a Jenkins pipeline.

Jenkins
tools {
    jdk '[1]'
    maven '[2]'
}
Drag options to blanks, or click blank then click option'
AJDK8
BMaven3
CGit
DNodeJS14
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing tool names or using unconfigured names.
Using the same tool name for both blanks.
5fill in blank
hard

Fill all three blanks to specify JDK, Maven, and NodeJS tools in a Jenkins pipeline.

Jenkins
tools {
    jdk '[1]'
    maven '[2]'
    nodejs '[3]'
}
Drag options to blanks, or click blank then click option'
AJDK11
BMaven3
CNodeJS14
DGit
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect or unconfigured tool names.
Repeating the same tool name for different tools.