Jenkins: Scripted vs Declarative Pipelines



Scripted is a general purpose DSL and executed from the top of a `Jenkinsfile` downwards like most traditional scripts in Groovy.

E.g. of if/else and try/catch/throw



  • Declarative pipelines have a `pipeline` block. e.g.
pipeline {
    /*... code here ...*/
  • executing a scripted pipeline in a Declarative Pipeline

a script step takes a block of Scripted Pipeline and executes that in the Declarative Pipeline

Leave a Reply

Your email address will not be published. Required fields are marked *