0
0
Jenkinsdevops~5 mins

Pipeline triggers and upstream/downstream in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a pipeline trigger in Jenkins?
A pipeline trigger is a way to start a Jenkins pipeline automatically when a specific event happens, like a code commit or another pipeline finishing.
Click to reveal answer
beginner
Explain upstream and downstream pipelines in Jenkins.
An upstream pipeline is the one that runs first and can trigger another pipeline called the downstream pipeline. The downstream pipeline depends on the upstream pipeline's completion.
Click to reveal answer
intermediate
How can you trigger a downstream pipeline from an upstream pipeline in Jenkins?
You can use the 'build' step in the upstream pipeline script to start the downstream pipeline after the upstream finishes.
Click to reveal answer
beginner
What is the benefit of using pipeline triggers between upstream and downstream jobs?
It automates the workflow, ensuring that dependent tasks run in order without manual intervention, saving time and reducing errors.
Click to reveal answer
beginner
Name one way to trigger a Jenkins pipeline on a code commit.
You can use a webhook from your source code repository (like GitHub) to trigger the Jenkins pipeline when code is pushed.
Click to reveal answer
Which Jenkins pipeline is called the 'downstream' pipeline?
AThe pipeline triggered by another pipeline
BThe pipeline that triggers another pipeline
CThe pipeline that runs independently
DThe pipeline that runs before any other pipeline
What Jenkins step is commonly used to trigger another pipeline?
Acheckout
Bsh
Cbuild
Dstage
How can a Jenkins pipeline be triggered automatically on a code push?
AUsing a webhook from the code repository
BBy running a shell script
CBy scheduling a timer
DBy manually clicking 'Build Now'
What is the main advantage of linking upstream and downstream pipelines?
ATo avoid using Jenkinsfiles
BTo reduce pipeline execution time
CTo run pipelines in parallel
DTo automate sequential workflows
Which of these is NOT a trigger type for Jenkins pipelines?
AWebhook trigger
BDatabase trigger
CManual trigger
DUpstream pipeline trigger
Describe how you would set up a Jenkins pipeline to trigger another pipeline after it finishes.
Think about the Jenkins pipeline script and how one job can start another.
You got /4 concepts.
    Explain the difference between upstream and downstream pipelines and why this relationship is useful.
    Consider which pipeline runs first and which depends on the other.
    You got /4 concepts.