Recall & Review
beginner
What is the purpose of the Build stage in a Jenkins pipeline?
The Build stage compiles the source code and prepares the application for testing and deployment. It transforms code into executable form.
Click to reveal answer
beginner
Why do we run a Test stage after the Build stage?
The Test stage checks if the built application works correctly by running automated tests. It helps catch errors early before deployment.
Click to reveal answer
beginner
What happens during the Deploy stage in Jenkins?
The Deploy stage moves the tested application to a live or staging environment where users can access it. It makes the app available.
Click to reveal answer
intermediate
How do the Build, Test, and Deploy stages work together in a Jenkins pipeline?
They form a sequence: first build the app, then test it, and finally deploy it. This ensures only working code reaches users.
Click to reveal answer
intermediate
Give a simple Jenkins pipeline snippet showing Build, Test, and Deploy stages.
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building...'
}
}
stage('Test') {
steps {
echo 'Testing...'
}
}
stage('Deploy') {
steps {
echo 'Deploying...'
}
}
}
}
Click to reveal answer
What is the first stage in a typical Jenkins pipeline?
✗ Incorrect
The Build stage is the first step where the source code is compiled or prepared.
Why is the Test stage important in a pipeline?
✗ Incorrect
Testing verifies the application works as expected before deployment.
What does the Deploy stage do?
✗ Incorrect
Deploying makes the application available to users.
Which stage comes directly after Build in Jenkins pipeline?
✗ Incorrect
Testing follows building to ensure the app works correctly.
What is the main benefit of having separate Build, Test, and Deploy stages?
✗ Incorrect
Separating stages helps catch errors early and ensures only good code is released.
Explain the role of each stage: Build, Test, and Deploy in a Jenkins pipeline.
Think of making a cake: prepare ingredients, bake, then serve.
You got /3 concepts.
Describe why it is important to have a Test stage before Deploy in a pipeline.
Imagine checking your homework before handing it in.
You got /3 concepts.