Complete the code to set a timeout of 10 minutes for the Jenkins pipeline stage.
options {
timeout(time: [1], unit: 'MINUTES')
}The timeout option sets the maximum time the pipeline stage can run. Here, 10 minutes is set.
Complete the code to retry the pipeline 3 times on failure.
options {
retry(count: [1])
}The retry option tells Jenkins how many times to retry the pipeline if it fails. Here, it retries 3 times.
Fix the error in the options directive to set a timeout of 15 minutes.
options {
timeout(time: [1], unit: 'minutes')
}The time value must be a number without quotes. The unit is case-sensitive and should be 'MINUTES'.
Fill both blanks to set a retry count of 4 and a timeout of 20 minutes.
options {
retry(count: [1])
timeout(time: [2], unit: 'MINUTES')
}The retry count is set to 4 and the timeout time is set to 20 minutes.
Fill all three blanks to set a retry count of 2, a timeout of 5 minutes, and use the correct unit.
options {
retry(count: [1])
timeout(time: [2], unit: '[3]')
}The retry count is 2, timeout is 5, and the unit must be 'MINUTES' in uppercase.