Jenkins scripted pipeline or declarative pipeline

前端 未结 7 1684
庸人自扰
庸人自扰 2020-12-22 20:20

I\'m trying to convert my old style project base workflow to a pipeline based on Jenkins. While going through docs I found there are two different syntaxes named scrip

7条回答
  •  攒了一身酷
    2020-12-22 21:13

    The Jenkins documentation properly explains and compares both the types.

    To quote: "Scripted Pipeline offers a tremendous amount of flexibility and extensibility to Jenkins users. The Groovy learning-curve isn’t typically desirable for all members of a given team, so Declarative Pipeline was created to offer a simpler and more opinionated syntax for authoring Jenkins Pipeline.

    The two are both fundamentally the same Pipeline sub-system underneath."

    Read more here:https://jenkins.io/doc/book/pipeline/syntax/#compare

提交回复
热议问题