Declarative Pipelines and Scripted Pipelines are both defined in a Jenkinsfilee and use the same underlying subsystem .
Which of the following is NOT true when discussing Declarative versus Scripted Pipelines?
A . Scripted Pipelines usually execute significantly faster than the comparable Declarative Pipeline.
B . Declarative Pipelines usually use the "agent" section to define the node where the code should execute but the "node" parameter can be used instead and allows for additional options such as "customWorkspace’’.
C . Scripted Pipelines require extensive knowledge of the Apache Groovy syntax wher ease Declarative Pipelines can be implemented with minimal understanding of Groovy and so have a lower risk of syntax errors than Scripted Pipelines.
D . You can use the Declarative Directive Generator to help structure statements for Declarative Pipelines and use the Snippet Generator to help structure statements for Scripted Pipelines.
E . Scripted Pipelines can implement some functionality that Declarative Pipeline syntax does not support, although small bits of scripted syntax can be included In a Declarative Pipeline by using the "script" step.
Answer: B,C,D
Leave a Reply