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 `pipeline` block. e.g.
/*... 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
Docker containers start with a PID1 namespace.
Rkt uses PID2 (‘cos PID 1 is used by systemd).
Jenkins Pipeline uses Groovy to build the “Scripted Pipeline” DSL.
By default, Pipeline builds go through in order.
The milestone plugin forces all builds to go through in order.
i.e. an older build cannot pass a milestone if a newer build has passed it.
Variables can be defined using their type (e.g.
String) or by the keyword
You can think of
def as an alias of
Object and you will understand it in an instant.
See also this on
def vs type.
def is redundant if using a type.
Alembic is a Python database migration.
a function of the Workspace Cleanup plugin and deletes the workspace.