Scripted is a general purpose DSL and executed from the top of a
Jenkinsfile downwards like most traditional scripts in Groovy.
try/catch/throw – https://jenkins.io/doc/book/pipeline/syntax/#flow-control
- Declarative pipelines have a
/*... code here ...*/
- executing a scripted pipeline in a Declarative Pipeline
script step takes a block of Scripted Pipeline and executes that in the Declarative Pipeline