Ravindra BagaleCourses & study guides मराठी

Ravi Sir's Cards › DevOps

Chapter 10: Jenkins Introduction: Cards

मराठी cards · Open the chapter

Revision cards

Why Jenkins still appears in interviews. Many companies, banks and service firms still run Jenkins for years-old projects.
Revision card 1 of 15: Why Jenkins still appears in interviews · Download PNG · Open card page

Lesson: 10.1 Why Jenkins still appears in interviews

Controller, agents and jobs. These three words appear in every Jenkins talk and error message.
Revision card 2 of 15: Controller, agents and jobs · Download PNG · Open card page

Lesson: 10.2 Controller, agents and jobs

Run Jenkins in Docker: lab shape. A lab should start in minutes and not need a server.
Revision card 3 of 15: Run Jenkins in Docker: lab shape · Download PNG · Open card page

Lesson: 10.3 Run Jenkins in Docker (lab shape)

Declarative Jenkinsfile basics. Pipelines typed into the UI are not reviewed or versioned.
Revision card 4 of 15: Declarative Jenkinsfile basics · Download PNG · Open card page

Lesson: 10.4 Declarative Jenkinsfile basics

Credentials store (high level). Passwords in scripts leak in Git and logs.
Revision card 5 of 15: Credentials store (high level) · Download PNG · Open card page

Lesson: 10.5 Credentials store (high level)

Pipeline job from SCM. The pipeline must come from Git so changes are reviewed.
Revision card 6 of 15: Pipeline job from SCM · Download PNG · Open card page

Lesson: 10.6 Pipeline job from SCM

GitHub Actions vs Jenkins: same badge, same stages. Tools change between companies. The ideas stay.
Revision card 7 of 15: GitHub Actions vs Jenkins: same badge, same stages · Download PNG · Open card page

Lesson: 10.7 Actions vs Jenkins — same badge API stages

Agents and Docker-in-Docker awareness. Building images from Jenkins is common, but easy to do unsafely.
Revision card 8 of 15: Agents and Docker-in-Docker awareness · Download PNG · Open card page

Lesson: 10.8 Agents and Docker-in-Docker awareness

Multibranch pipeline awareness. Teams work on many branches at once.
Revision card 9 of 15: Multibranch pipeline awareness · Download PNG · Open card page

Lesson: 10.8b Multibranch Pipeline (awareness)

Shared libraries awareness. Copying the same pipeline code everywhere is hard to fix.
Revision card 10 of 15: Shared libraries awareness · Download PNG · Open card page

Lesson: 10.8c Shared libraries (awareness)

Folders and credentials scope. If every secret is global, any job can use any secret.
Revision card 11 of 15: Folders and credentials scope · Download PNG · Open card page

Lesson: 10.8d Folders and credentials scope

Troubleshooting table. First Jenkins errors are usually setup, not code.
Revision card 12 of 15: Troubleshooting table · Download PNG · Open card page

Lesson: 10.9 Troubleshooting table

Safety for a lab Jenkins. Open Jenkins servers are found and abused quickly.
Revision card 13 of 15: Safety for a lab Jenkins · Download PNG · Open card page

Lesson: 10.10 Safety for lab Jenkins

Cleanup and cost safety habits. Forgotten cloud servers keep billing every hour.
Revision card 14 of 15: Cleanup and cost safety habits · Download PNG · Open card page

Lesson: 10.11 Cleanup and cost/safety habits

Lab: Jenkins in Docker with a pipeline job. Doing it once yourself is the best interview proof.
Revision card 15 of 15: Lab: Jenkins in Docker with a pipeline job · Download PNG · Open card page

Lesson: 10.12 Lab — Jenkins in Docker + Pipeline job

Interview cards

Why learn Jenkins when newer tools exist? Many companies still run it, and its ideas (triggers, stages, agents, credentials) work in every CI tool.
Interview card 1 of 15: Why learn Jenkins when newer tools exist? · Download PNG · Open card page

Lesson: 10.1 Why Jenkins still appears in interviews

What is a controller, an agent and a job? Controller: main server and UI. Agent: machine that runs builds. Job: the task with its steps.
Interview card 2 of 15: What is a controller, an agent and a job? · Download PNG · Open card page

Lesson: 10.2 Controller, agents and jobs

How do you run Jenkins in Docker for a lab? Run jenkins/jenkins:lts with a volume for data and the port bound to localhost.
Interview card 3 of 15: How do you run Jenkins in Docker for a lab? · Download PNG · Open card page

Lesson: 10.3 Run Jenkins in Docker (lab shape)

Write a minimal Declarative Jenkinsfile. pipeline, agent, stages with steps, and post.
Interview card 4 of 15: Write a minimal Declarative Jenkinsfile. · Download PNG · Open card page

Lesson: 10.4 Declarative Jenkinsfile basics

How do Jenkins jobs use secrets? Secrets live in the Credentials store. Jobs use them by ID, and logs mask them.
Interview card 5 of 15: How do Jenkins jobs use secrets? · Download PNG · Open card page

Lesson: 10.5 Credentials store (high level)

What does Pipeline script from SCM mean? The job reads the Jenkinsfile from Git on every build, instead of a script typed in the UI.
Interview card 6 of 15: What does Pipeline script from SCM mean? · Download PNG · Open card page

Lesson: 10.6 Pipeline job from SCM

How is GitHub Actions like Jenkins? Both run stages/steps on a machine (runner/agent) after a trigger, defined in a file in Git.
Interview card 7 of 15: How is GitHub Actions like Jenkins? · Download PNG · Open card page

Lesson: 10.7 Actions vs Jenkins — same badge API stages

Why is Docker-in-Docker risky in Jenkins? Mounting the Docker socket or running privileged gives the build root control of the host.
Interview card 8 of 15: Why is Docker-in-Docker risky in Jenkins? · Download PNG · Open card page

Lesson: 10.8 Agents and Docker-in-Docker awareness

What does a Multibranch Pipeline give a team? A build for every branch and PR with a Jenkinsfile, created and removed automatically.
Interview card 9 of 15: What does a Multibranch Pipeline give a team? · Download PNG · Open card page

Lesson: 10.8b Multibranch Pipeline (awareness)

When do you use a shared library? When many repos share the same pipeline steps, so you fix them once.
Interview card 10 of 15: When do you use a shared library? · Download PNG · Open card page

Lesson: 10.8c Shared libraries (awareness)

Global vs folder credentials? Global: any job can use it. Folder: only jobs in that folder. Use folders per team.
Interview card 11 of 15: Global vs folder credentials? · Download PNG · Open card page

Lesson: 10.8d Folders and credentials scope

A first Jenkins build fails. Where do you start? The console log: find the first error, then check tools, credentials and Jenkinsfile spelling.
Interview card 12 of 15: A first Jenkins build fails. Where do you start? · Download PNG · Open card page

Lesson: 10.9 Troubleshooting table

How do you keep a lab Jenkins safe? Strong admin password, not public (localhost or your IP only), no real secrets, and stop it after.
Interview card 13 of 15: How do you keep a lab Jenkins safe? · Download PNG · Open card page

Lesson: 10.10 Safety for lab Jenkins

What do you clean up after a Jenkins lab? Stop or delete cloud VMs, remove containers and volumes, and revoke lab tokens.
Interview card 14 of 15: What do you clean up after a Jenkins lab? · Download PNG · Open card page

Lesson: 10.11 Cleanup and cost/safety habits

Walk through your Jenkins lab. Jenkins in Docker, a Pipeline from SCM job, a Jenkinsfile with Checkout, Build, Test, and archived output.
Interview card 15 of 15: Walk through your Jenkins lab. · Download PNG · Open card page

Lesson: 10.12 Lab — Jenkins in Docker + Pipeline job

Comparison cards

GitHub Actions vs Jenkins. GitHub Actions: CI built into GitHub, workflows in .yml.Jenkins: self-hosted server, Jenkinsfile in Groovy.
Comparison card 1 of 3: GitHub Actions vs Jenkins · Download PNG · Open card page

Lesson: 10.7 Actions vs Jenkins — same badge API stages

Global vs folder-scoped credentials. Global: every job can use it.Folder: only jobs in that folder.
Comparison card 2 of 3: Global vs folder-scoped credentials · Download PNG · Open card page

Lesson: 10.8d Folders and credentials scope

Container vs volume. Container: the running Jenkins program.Volume: storage that keeps JENKINS_HOME.
Comparison card 3 of 3: Container vs volume · Download PNG · Open card page

Lesson: 10.3 Run Jenkins in Docker (lab shape)