Complete the code to enable automatic installation of Git in Jenkins pipeline.
tools {
git '[1]'
}Using 'default' tells Jenkins to use the default Git installation or install it automatically if missing.
Complete the code to auto-install Maven version 3.6.3 in Jenkins pipeline.
tools {
maven '[1]'
}Specifying '3.6.3' ensures Jenkins installs that exact Maven version automatically.
Fix the error in the Jenkins pipeline code to auto-install JDK 11.
tools {
jdk '[1]'
}The correct tool name for auto-installation is 'openjdk-11' matching the configured JDK tool name in Jenkins.
Fill both blanks to auto-install NodeJS version 14 and Yarn version 1.22 in Jenkins pipeline.
tools {
nodejs '[1]'
yarn '[2]'
}Specify exact versions '14' for NodeJS and '1.22' for Yarn to auto-install those versions.
Fill all three blanks to auto-install Git, Maven 3.8.1, and JDK openjdk-17 in Jenkins pipeline.
tools {
git '[1]'
maven '[2]'
jdk '[3]'
}Use 'default' for Git, specify '3.8.1' for Maven, and 'openjdk-17' for JDK to auto-install these tools correctly.