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?✗ Incorrect
The
input step pauses the pipeline and waits for a user to approve or provide input before continuing.Which parameter restricts who can approve the Jenkins input step?
✗ Incorrect
The
submitter parameter specifies which users or groups can approve the input step.What happens if no one approves the Jenkins input step?
✗ Incorrect
The pipeline remains paused until a user approves or aborts the input step.
How do you add a simple input step with the message 'Proceed with deployment?'?
✗ Incorrect
The syntax
input 'Proceed with deployment?' pauses the pipeline and shows that message.Which Jenkins pipeline type supports the
input step?✗ Incorrect
Both declarative and scripted Jenkins pipelines support the
input step.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.