0
0
Jenkinsdevops~5 mins

Build steps execution in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AIgnores the failure and continues
BStops the build and marks it as failed
CRestarts the build from the beginning
DSends an email but continues
Which build step would you use to run a shell script in Jenkins?
AInvoke Ant
BRun batch command
CExecute shell
DInvoke Gradle
How do you add multiple build steps in a Jenkins freestyle project?
AAdd each step separately using 'Add build step'
BAdd one step and it repeats automatically
CUse a pipeline script only
DYou cannot add multiple steps
What is the purpose of the 'Invoke Ant' build step?
ATo execute Ant build scripts
BTo deploy Docker containers
CTo run shell commands
DTo run Python scripts
In what order do Jenkins build steps execute?
ARandom order
BReverse order
CAlphabetical order
DThe order they are added
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.