Answers
- Correct answer: B
Explanation of incorrect answer choices:
A. This option is incorrect because sections in the Jenkins Declarative Pipeline syntax are not limited to global definitions. They can also be used within individual stages, allowing for more granular control and customization of pipeline behavior.
C. This option is incorrect, as sections are multifunctional and not restricted to defining agent configurations. They cover a range of functionalities, including but not limited to setting environment variables, defining stages, and managing post-build actions.
D. This option is incorrect because sections are not solely used for handling failures within stages. While they can include error-handling strategies, their primary purpose extends to a broader range of functionalities, including stage definition, environment setup, and post-build actions.
- Correct answer: B
Explanation of incorrect answer choices:
A. This option is incorrect because directives in the Jenkins...