GitLab CI is a tool built into GitLab that helps automate software testing and deployment by running jobs defined in a file called .gitlab-ci.yml.
Click to reveal answer
beginner
How does Jenkins differ from GitLab CI in setup?
Jenkins requires separate installation and setup on a server, while GitLab CI is integrated directly into GitLab and works out of the box with GitLab repositories.
Click to reveal answer
beginner
What file defines the pipeline in GitLab CI?
The pipeline is defined in a file named .gitlab-ci.yml located in the root of the project repository.
Click to reveal answer
intermediate
Which tool provides a web interface to visualize pipelines and jobs?
Both Jenkins and GitLab CI provide web interfaces, but GitLab CI's interface is integrated into the GitLab platform, showing pipelines alongside code and issues.
Click to reveal answer
beginner
What is a key advantage of GitLab CI over Jenkins for beginners?
GitLab CI is easier to start with because it requires no separate installation and integrates tightly with GitLab repositories, simplifying pipeline setup.
Click to reveal answer
Which file is used to configure GitLab CI pipelines?
Apipeline.json
BJenkinsfile
C.gitlab-ci.yml
Dconfig.xml
✗ Incorrect
GitLab CI uses the .gitlab-ci.yml file to define pipeline jobs and stages.
What is a main difference between Jenkins and GitLab CI?
AJenkins is a standalone tool; GitLab CI is integrated into GitLab
BGitLab CI requires separate installation; Jenkins does not
CJenkins only works with GitLab repositories
DGitLab CI uses Jenkinsfile for configuration
✗ Incorrect
Jenkins is a separate tool needing installation, while GitLab CI is built into GitLab.
Which tool provides a pipeline view inside the same interface as code and issues?
AJenkins
BGitLab CI
CTravis CI
DCircleCI
✗ Incorrect
GitLab CI integrates pipeline views directly in the GitLab interface.
Which tool requires you to manage your own server or cloud instance?
AJenkins
BGitLab CI
CGitHub Actions
DBitbucket Pipelines
✗ Incorrect
Jenkins needs you to install and maintain the server where it runs.
Which file is used to configure Jenkins pipelines?
Apom.xml
B.gitlab-ci.yml
Cbuild.gradle
DJenkinsfile
✗ Incorrect
Jenkins pipelines are defined in a Jenkinsfile.
Explain the main differences between GitLab CI and Jenkins in terms of setup and integration.
Think about how each tool connects to your code repository and how you start using them.
You got /4 concepts.
Describe the advantages of using GitLab CI for a beginner starting with continuous integration.
Consider ease of use and how quickly you can see results.
You got /4 concepts.
Practice
(1/5)
1. Which statement best describes the main difference between Jenkins and GitLab CI?
easy
A. Jenkins cannot automate building and testing.
B. GitLab CI has more plugins than Jenkins.
C. GitLab CI is easier to start with if you already use GitLab for your code.
D. Jenkins is only for deployment, not for testing.
Solution
Step 1: Understand GitLab CI's integration
GitLab CI is built into GitLab, making it simpler to start if your code is hosted there.
Step 2: Compare Jenkins capabilities
Jenkins offers more flexibility and plugins but requires more setup.
Final Answer:
GitLab CI is easier to start with if you already use GitLab for your code. -> Option C
Quick Check:
GitLab CI simpler start = B [OK]
Hint: GitLab CI is simpler if your code is on GitLab [OK]
Common Mistakes:
Thinking Jenkins cannot automate testing
Assuming GitLab CI has more plugins
Believing Jenkins is only for deployment
2. Which of the following is the correct way to define a simple Jenkins pipeline step that echoes 'Hello World'?