Recall & Review
beginner
What is a build step in Jenkins?
A build step is a single task or command Jenkins runs during a job to build, test, or deploy your project.
Click to reveal answer
beginner
How do you add a build step in a Jenkins freestyle project?
In the job configuration, click 'Add build step' and select the desired action like 'Execute shell' or 'Invoke Ant'.
Click to reveal answer
intermediate
What happens if a build step fails in Jenkins?
Jenkins stops the build process and marks the build as failed unless configured to continue on errors.
Click to reveal answer
intermediate
Explain the difference between 'Execute shell' and 'Invoke Ant' build steps.
'Execute shell' runs shell commands directly, while 'Invoke Ant' runs Ant build scripts for Java projects.
Click to reveal answer
beginner
How can you sequence multiple build steps in Jenkins?
Build steps run in the order they are added. You can add multiple steps to run commands or scripts one after another.
Click to reveal answer
What does Jenkins do when a build step fails by default?
✗ Incorrect
By default, Jenkins stops the build and marks it as failed when a build step fails.
Which build step would you use to run a shell script in Jenkins?
✗ Incorrect
'Execute shell' runs shell commands or scripts on Unix/Linux agents.
How do you add multiple build steps in a Jenkins freestyle project?
✗ Incorrect
You add multiple build steps by clicking 'Add build step' multiple times and selecting the desired actions.
What is the purpose of the 'Invoke Ant' build step?
✗ Incorrect
'Invoke Ant' runs Ant build scripts, commonly used for Java projects.
In what order do Jenkins build steps execute?
✗ Incorrect
Build steps execute in the order they are added in the job configuration.
Describe how to add and sequence build steps in a Jenkins freestyle project.
Think about the job configuration screen and how Jenkins runs steps.
You got /4 concepts.
Explain what happens when a build step fails during Jenkins build execution.
Consider Jenkins default behavior and possible configurations.
You got /4 concepts.