0
0
Jenkinsdevops~5 mins

Input step for manual approval in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the input step in a Jenkins pipeline?
The input step pauses the pipeline and waits for a manual approval or input from a user before continuing.
Click to reveal answer
beginner
How do you define a simple manual approval step in a Jenkins scripted pipeline?
Use input 'Approve deployment?' inside the pipeline script to pause and ask for approval.
Click to reveal answer
intermediate
What happens if the manual approval is not given in the Jenkins input step?
The pipeline stays paused indefinitely until a user approves or aborts the input step.
Click to reveal answer
intermediate
Can you customize the message and submitter for the Jenkins input step?
Yes, you can add parameters like message and submitter to control the prompt text and who can approve.
Click to reveal answer
intermediate
Show an example of an input step that only allows user 'admin' to approve.
Example:
input message: 'Approve deployment?', submitter: 'admin'
Click to reveal answer
What does the Jenkins input step do in a pipeline?
APauses the pipeline and waits for manual approval
BAutomatically approves the pipeline
CSkips the current stage
DRestarts the pipeline
Which parameter restricts who can approve the Jenkins input step?
Amessage
Bstage
Ctimeout
Dsubmitter
What happens if no one approves the Jenkins input step?
APipeline continues automatically
BPipeline fails immediately
CPipeline stays paused indefinitely
DPipeline restarts
How do you add a simple input step with the message 'Proceed with deployment?'?
Await 'Proceed with deployment?'
Binput 'Proceed with deployment?'
Cpause 'Proceed with deployment?'
Dapprove 'Proceed with deployment?'
Which Jenkins pipeline type supports the input step?
ADeclarative and scripted pipelines
BOnly scripted pipelines
COnly declarative pipelines
DFreestyle projects only
Explain how the Jenkins input step works and why it is useful in pipelines.
Think about stopping a process to ask for permission before moving on.
You got /4 concepts.
    Describe how to restrict who can approve a Jenkins input step and why this might be important.
    Consider who should have the power to say yes or no.
    You got /4 concepts.