Recall & Review
beginner
What is a branch specifier in Jenkins?
A branch specifier tells Jenkins which branch to build from your source code repository. It helps Jenkins pick the right code version.
Click to reveal answer
beginner
How do you specify the main branch in Jenkins using a branch specifier?
You use
*/main or */master in the branch specifier field to tell Jenkins to build the main branch.Click to reveal answer
intermediate
What does the asterisk (*) mean in a Jenkins branch specifier like
*/feature/*?The asterisk (*) is a wildcard that matches any characters. So
*/feature/* matches any branch inside the feature folder or prefix.Click to reveal answer
beginner
Why is branch selection important in Jenkins pipelines?
Branch selection ensures Jenkins builds and tests the correct version of your code. It helps avoid mistakes like building old or wrong branches.
Click to reveal answer
intermediate
How can you select multiple branches in Jenkins using branch specifiers?
You can enter multiple branch specifiers each on a separate line, like
*/main
*/develop, to build both branches.Click to reveal answer
What does the branch specifier
*/develop mean in Jenkins?✗ Incorrect
The
*/develop specifier tells Jenkins to build the develop branch specifically.Which symbol is used as a wildcard in Jenkins branch specifiers?
✗ Incorrect
The asterisk (*) is used as a wildcard to match any characters in branch names.
How do you specify multiple branches in Jenkins branch specifier?
✗ Incorrect
Multiple branch specifiers are entered each on a new line in the field.
Why should you carefully select branches in Jenkins builds?
✗ Incorrect
Selecting the right branch ensures Jenkins builds the correct version of your code.
What does
*/feature/* match in Jenkins branch specifier?✗ Incorrect
The wildcard matches any branch that starts with feature/.
Explain how branch specifiers work in Jenkins and why they are useful.
Think about how Jenkins knows which code to build.
You got /3 concepts.
Describe how to select multiple branches for building in Jenkins using branch specifiers.
Consider how to tell Jenkins to build more than one branch.
You got /3 concepts.