0
0
Jenkinsdevops~10 mins

Tool auto-installation 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 enable automatic installation of Git in Jenkins pipeline.

Jenkins
tools {
  git '[1]'
}
Drag options to blanks, or click blank then click option'
Aauto
Blatest
Cdefault
Dinstall
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'latest' causes Jenkins to look for a specific version that may not exist.
2fill in blank
medium

Complete the code to auto-install Maven version 3.6.3 in Jenkins pipeline.

Jenkins
tools {
  maven '[1]'
}
Drag options to blanks, or click blank then click option'
A3.6.3
Bdefault
Clatest
D3.5.4
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'latest' may install a different version than expected.
3fill in blank
hard

Fix the error in the Jenkins pipeline code to auto-install JDK 11.

Jenkins
tools {
  jdk '[1]'
}
Drag options to blanks, or click blank then click option'
Ajdk11
B11
CJDK 11
Dopenjdk-11
Attempts:
3 left
💡 Hint
Common Mistakes
Using '11' or 'jdk11' causes Jenkins to fail finding the tool.
4fill in blank
hard

Fill both blanks to auto-install NodeJS version 14 and Yarn version 1.22 in Jenkins pipeline.

Jenkins
tools {
  nodejs '[1]'
  yarn '[2]'
}
Drag options to blanks, or click blank then click option'
A14
B1.22
Cdefault
Dlatest
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'default' installs whatever Jenkins has configured, not the requested versions.
5fill in blank
hard

Fill all three blanks to auto-install Git, Maven 3.8.1, and JDK openjdk-17 in Jenkins pipeline.

Jenkins
tools {
  git '[1]'
  maven '[2]'
  jdk '[3]'
}
Drag options to blanks, or click blank then click option'
Adefault
B3.8.1
Copenjdk-17
Dlatest
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'latest' for all tools may install unexpected versions.