Jenkins Pipeline Configuration Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering CI/CD Pipelines

What you'll be asked

  1. In a Jenkins Declarative Pipeline, which directive is used to define the actual work to be performed within a stage?
  2. Which of the following best describes the purpose of the 'agent' directive in a Jenkins Pipeline?
  3. If you want a specific stage in your Jenkins Pipeline to run only if the branch name is 'main', which directive should you use?
  4. What is the primary difference between a 'Scripted' Pipeline and a 'Declarative' Pipeline in Jenkins?
  5. In a Jenkins Pipeline, how can you ensure a specific block of code runs regardless of whether the previous stages succeeded or failed?

Answers and explanations come after you submit.