0
0
Jenkinsdevops~5 mins

Source code management setup in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Source Code Management (SCM) in Jenkins?
SCM in Jenkins is a system that helps Jenkins get the latest version of your code from a repository like Git or Subversion before building or testing it.
Click to reveal answer
beginner
Name two popular SCM tools Jenkins can integrate with.
Git and Subversion (SVN) are two popular SCM tools Jenkins can connect to for fetching source code.
Click to reveal answer
beginner
What is the purpose of the 'Repository URL' field in Jenkins SCM setup?
It tells Jenkins where to find your source code repository so it can download the code to build or test.
Click to reveal answer
intermediate
How does Jenkins use credentials in SCM setup?
Jenkins uses credentials like usernames, passwords, or SSH keys to securely access private repositories during the build process.
Click to reveal answer
beginner
What is a 'branch' in SCM and why might you specify it in Jenkins?
A branch is a separate line of development in your code. Specifying it in Jenkins tells it which version of the code to build.
Click to reveal answer
Which SCM tool is most commonly used with Jenkins for modern projects?
AGit
BCVS
CMercurial
DPerforce
What does Jenkins need to access a private Git repository?
ARepository URL only
BDocker image
CBuild triggers
DCredentials like SSH keys or username/password
In Jenkins SCM setup, what does specifying a branch do?
ADefines the build environment
BSelects which code version to build
CSets the build schedule
DConfigures notifications
Which plugin is commonly used in Jenkins to connect with Git repositories?
ADocker plugin
BSubversion plugin
CGit plugin
DMaven plugin
What is the first step to set up SCM in a Jenkins job?
AAdd repository URL in Source Code Management section
BConfigure build triggers
CInstall Jenkins
DWrite build scripts
Explain how to set up source code management in a Jenkins job for a Git repository.
Think about the steps you take to connect Jenkins to your code.
You got /6 concepts.
    Why is it important to use credentials when setting up SCM in Jenkins?
    Consider security and access control.
    You got /4 concepts.