0
0
Jenkinsdevops~5 mins

Webhook triggers from GitHub/GitLab in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a webhook in the context of GitHub or GitLab?
A webhook is a way for GitHub or GitLab to send a message to another system, like Jenkins, when something happens in a repository, such as a code push or pull request.
Click to reveal answer
beginner
How does Jenkins use webhooks from GitHub or GitLab?
Jenkins listens for webhook messages from GitHub or GitLab to automatically start a build or deployment when code changes are pushed.
Click to reveal answer
beginner
What is the main benefit of using webhook triggers in Jenkins pipelines?
The main benefit is automation: Jenkins can start jobs immediately after code changes, saving time and reducing manual work.
Click to reveal answer
intermediate
Which Jenkins plugin is commonly used to integrate GitHub webhooks?
The 'GitHub plugin' is commonly used to connect Jenkins with GitHub webhooks for triggering builds.
Click to reveal answer
intermediate
What must you configure in GitHub or GitLab to enable webhook triggers for Jenkins?
You must set the webhook URL in the repository settings pointing to your Jenkins server's webhook endpoint and select which events trigger the webhook.
Click to reveal answer
What event typically triggers a Jenkins build via a GitHub webhook?
AChanging the repository description
BA code push to the repository
COpening a new issue
DAdding a new collaborator
Which Jenkins plugin helps receive webhook calls from GitHub?
ADocker plugin
BSlack plugin
CGitHub plugin
DPipeline plugin
Where do you configure the webhook URL in GitLab to trigger Jenkins?
ARepository Settings > Webhooks
BUser Profile > Webhooks
CGroup Settings > Integrations
DProject Wiki
What protocol does Jenkins use to receive webhook calls from GitHub/GitLab?
AHTTP/HTTPS
BFTP
CSSH
DSMTP
What is a common security measure when setting up webhooks for Jenkins?
AUsing FTP for webhook delivery
BAllowing anonymous access to Jenkins
CDisabling SSL
DUsing a secret token to verify webhook messages
Explain how webhook triggers from GitHub or GitLab automate Jenkins builds.
Think about what happens when you push code and how Jenkins knows to start.
You got /3 concepts.
    Describe the steps to configure a webhook in GitHub to trigger a Jenkins job.
    Focus on the GitHub side setup before Jenkins reacts.
    You got /4 concepts.