Ravindra BagaleCourses & study guides मराठी

Ravi Sir's Cards › DevOps

Chapter 24: Jenkins with GitHub, GitLab and Bitbucket: Cards

मराठी cards · Open the chapter

Revision cards

GitHub, GitLab, Bitbucket: one Jenkins idea. Companies use different Git hosts. The Jenkins setup should not change much.
Revision card 1 of 6: GitHub, GitLab, Bitbucket: one Jenkins idea · Download PNG · Open card page

Lesson: 24.1 Three hosts, one Jenkins idea

HTTPS or SSH to clone. Jenkins must prove who it is to read a private repo.
Revision card 2 of 6: HTTPS or SSH to clone · Download PNG · Open card page

Lesson: 24.2 HTTPS or SSH

Webhook vs poll: the laptop is not on the internet. GitHub can only call a Jenkins it can reach.
Revision card 3 of 6: Webhook vs poll: the laptop is not on the internet · Download PNG · Open card page

Lesson: 24.3 Webhook versus poll — the laptop is not on the internet

Multibranch pipeline. Making a job per branch by hand does not scale.
Revision card 4 of 6: Multibranch pipeline · Download PNG · Open card page

Lesson: 24.4 Multibranch

Pull request builds and tag builds. Broken code should be caught before merge, and releases should be built from a fixed point.
Revision card 5 of 6: Pull request builds and tag builds · Download PNG · Open card page

Lesson: 24.5 Pull request builds and tag builds

What not to do with Git and Jenkins. Small shortcuts with Git access cause leaks and bad deploys.
Revision card 6 of 6: What not to do with Git and Jenkins · Download PNG · Open card page

Lesson: 24.7 What not to do

Interview cards

Does Jenkins work the same with GitHub, GitLab and Bitbucket? Yes. Each needs a repo URL, a credential ID and a webhook. Only the plugin differs.
Interview card 1 of 6: Does Jenkins work the same with GitHub, GitLab and Bitbucket? · Download PNG · Open card page

Lesson: 24.1 Three hosts, one Jenkins idea

HTTPS token or SSH key for Jenkins to clone? Both work. Use the smallest access: a read-only deploy key (SSH) or a token with only repo read.
Interview card 2 of 6: HTTPS token or SSH key for Jenkins to clone? · Download PNG · Open card page

Lesson: 24.2 HTTPS or SSH

Why doesn't the GitHub webhook reach my Jenkins? GitHub must reach Jenkins over the internet. A laptop or private network is not reachable.
Interview card 3 of 6: Why doesn't the GitHub webhook reach my Jenkins? · Download PNG · Open card page

Lesson: 24.3 Webhook versus poll — the laptop is not on the internet

What does a Multibranch Pipeline do? It scans the repo, makes a job for each branch with a Jenkinsfile, and removes jobs for deleted branches.
Interview card 4 of 6: What does a Multibranch Pipeline do? · Download PNG · Open card page

Lesson: 24.4 Multibranch

How do you build a release from a Git tag? Enable tag discovery. In the Jenkinsfile, run release steps when { buildingTag() }.
Interview card 5 of 6: How do you build a release from a Git tag? · Download PNG · Open card page

Lesson: 24.5 Pull request builds and tag builds

What should you never do with Git in Jenkins? Never use an admin token to clone, never put secrets in the Jenkinsfile, and never deploy from any branch.
Interview card 6 of 6: What should you never do with Git in Jenkins? · Download PNG · Open card page

Lesson: 24.7 What not to do

Comparison cards

HTTPS vs SSH for Git in Jenkins. HTTPS: clone with username + token.SSH: clone with a key pair.
Comparison card 1 of 3: HTTPS vs SSH for Git in Jenkins · Download PNG · Open card page

Lesson: 24.2 HTTPS or SSH

Pipeline job vs Multibranch Pipeline. Pipeline: one job, one branch.Multibranch: one job per branch and PR, made automatically.
Comparison card 2 of 3: Pipeline job vs Multibranch Pipeline · Download PNG · Open card page

Lesson: 24.4 Multibranch

PR build vs tag build. PR build: tests a proposed change.Tag build: builds a version like v1.4.0.
Comparison card 3 of 3: PR build vs tag build · Download PNG · Open card page

Lesson: 24.5 Pull request builds and tag builds