0
0
Gitdevops~5 mins

GitLab CI basics - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is GitLab CI?
GitLab CI is a tool built into GitLab that helps you automatically test, build, and deploy your code whenever you make changes.
Click to reveal answer
beginner
What file do you use to define GitLab CI jobs?
You use a file named .gitlab-ci.yml placed in the root of your project to define jobs and pipelines.
Click to reveal answer
beginner
What is a pipeline in GitLab CI?
A pipeline is a set of jobs that run in order or in parallel to test, build, and deploy your code automatically.
Click to reveal answer
beginner
What is a job in GitLab CI?
A job is a single task defined in the .gitlab-ci.yml file, like running tests or building your app.
Click to reveal answer
beginner
How do you trigger a GitLab CI pipeline?
A pipeline runs automatically when you push code to GitLab or when you manually start it from the GitLab interface.
Click to reveal answer
Where should the .gitlab-ci.yml file be placed in your project?
AIn the tests folder
BIn the docs folder
CIn the root directory
DIn the .git folder
What does a GitLab CI job do?
AStores your code
BCreates a new Git branch
CManages user permissions
DRuns a specific task like testing or building
When does a GitLab CI pipeline usually run?
AWhen you push code to GitLab
BWhen you open a new issue
CWhen you delete a branch
DWhen you clone a repository
What language is used to write the GitLab CI configuration file?
AJSON
BYAML
CXML
DPython
Which of these is NOT a part of a GitLab CI pipeline?
ACommits
BStages
CArtifacts
DJobs
Explain what a GitLab CI pipeline is and how it helps in software development.
Think about how pipelines run tasks automatically when you change code.
You got /5 concepts.
    Describe the role of the .gitlab-ci.yml file in GitLab CI.
    This file tells GitLab what tasks to run and when.
    You got /5 concepts.