0
0
Jenkinsdevops~5 mins

Build tools (Maven, Gradle, npm) in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main purpose of build tools like Maven, Gradle, and npm?
Build tools automate the process of compiling code, managing dependencies, running tests, and packaging applications so developers can focus on writing code.
Click to reveal answer
beginner
How does Maven manage project dependencies?
Maven uses a file called pom.xml where you list your project dependencies. It downloads these dependencies from central repositories automatically.
Click to reveal answer
intermediate
What is the key difference between Maven and Gradle?
Maven uses XML files for configuration, which are more rigid, while Gradle uses a flexible Groovy or Kotlin DSL allowing more customization and faster builds.
Click to reveal answer
beginner
What file does npm use to manage dependencies and scripts?
npm uses package.json to list dependencies and define scripts to automate tasks like testing and building.
Click to reveal answer
intermediate
How can Jenkins integrate with build tools like Maven, Gradle, and npm?
Jenkins can run build tool commands in its pipelines or freestyle jobs to automate building, testing, and deploying projects continuously.
Click to reveal answer
Which file does Maven use to define project dependencies?
Asettings.xml
Bpom.xml
Cpackage.json
Dbuild.gradle
What language is used to write Gradle build scripts?
AGroovy or Kotlin
BXML
CJSON
DYAML
Which command installs dependencies listed in npm's package.json?
Anpm build
Bnpm update
Cnpm run
Dnpm install
In Jenkins, how do you typically run a Maven build?
ABy running 'npm start'
BBy editing package.json
CBy running 'mvn clean install' in a build step
DBy writing XML in Jenkinsfile
Which build tool is primarily used for JavaScript projects?
Anpm
BGradle
CMaven
DAnt
Explain how Maven, Gradle, and npm help automate software builds.
Think about the steps you do manually when preparing software to run.
You got /5 concepts.
    Describe how Jenkins can use build tools to create a continuous integration pipeline.
    Consider how Jenkins automates the developer's workflow.
    You got /5 concepts.