Declarative Jenkins Pipelines
More information is available at jenkins.io.
pipeline-scm-step2.6+ and recent versions of
mercurialplugins, include SCM-provided variables in environment automatically.
when expression, variable and function behavior consistency, and more.
pipelineblock can work in
pipelineblock work in
environmentvariable and referenced in another.
PATH, can be overridden in the
environmentvariable definitions no longer require curly braces.
errorsteps visible in Blue Ocean correctly.
environmentvariables can be configured to have default values, i.e.,
FOO = FOO ?: "default"
pipelineoutside of a Declarative Pipeline.
toolsdefined at the top-level are installed on
Jenkins.READpermissions for CLI linter.
WithScriptextension points until we've moved to Jenkins core 2.66 or later.
JobPropertyand related errors.
ParameterDefinitionleft behind upon removal from
ParameterDefinitiondefined outside of the
com.github.fge.*JSON schema classes to allow other uses of different versions of the library.
DataBoundConstructorwith a single
environmentvalues for cross-references.
environmentvalues means ordering of declaration does not need to be relevant.
credentialsenvironment variables are available for reference in
environmentvariable values are available for use in
credentialsstrings as well.
validateDeclarativePipelinestep for validating Declarative Pipelines from within Pipelines. Meta!
nulltranslation between JSON and Groovy representations.
librariesdirective for specifying shared libraries to load in to the build.
whenconditions that contain other
environmentserialization error when XStream serialization is used behind the scenes.
Stringvalues in JSON that would lead to invalid Groovy syntax, and reject any JSON that converts to invalid Groovy syntax generally.
environmentsection to actually work.
env.WORKSPACEcan be referenced in
NullPointerExceptionwhen a null value is used for
jackson2-api) are installed.
postconditions even if an earlier one fails.
dockerfileto run on the same
nodeas the top-level, so that you can reuse the workspace.
environmentconditions did not actually work. Fixed.
optionsand add the first Declarative-specific
wrapperssection, move wrappers like
agentsyntax to be more extensible and consistent.
whensyntax and helpers.
TagsActionclass to mark skipped stages so that Blue Ocean can render them accurately.
jenkins-clicommand for linting a Declarative Jenkinsfile.
stagefailures still trigger
dockerfileagent backend, auto-building a Dockerfile and running the build in the resulting image.
postfor consistency with post-stage actions.
wrapperssection for wrapping the entire build in a block-scoped step, like
agentbackends are now pluggable.
environmentsection support in stages.
toolssection support in stages.
pipelinestep is present but not at the top-level.
agent anyto replace
paralleland other steps.