-
Notifications
You must be signed in to change notification settings - Fork 257
Version History and Changes
Andrew Bayer edited this page Feb 1, 2017
·
14 revisions
The plugin page on the Jenkins project wiki always will contain a full list of changes in releases of the Declarative Pipelines plugin, but you can find more detail on specific changes here.
- Release Date: February 1, 2017
-
Major Changes:
- First non-beta release!
- Release Date: January 25, 2017
-
Major Changes:
- Final beta (unless blocker bugs are discovered) - no non-blocker changes to be added between this release and 1.0.
- Option added to run per-stage
dockerordockerfileagents on the same node as specified at the top-level. - Default SCM checkout moved to run on the actual node even if
dockerordockerfileagent is used at top-level. - Addition of
registryUrlandregistryCredentialsIdoptions fordockeranddockerfileagents using private registries.
- Release Date: January 10, 2017
-
Major Changes:
-
COMPATIBILITY BREAKING SYNTAX CHANGE: The
agentsection syntax has been changed to the following:
agent { label "foo" } agent { docker { label "foo" image "some-image" args "--hi-there" } } agent { docker "some-image" // To run on any node without additional Docker arguments } agent { // Runs on any node, builds a Docker image from "Dockerfile" and runs the build in a container using the resulting image. dockerfile true } agent { dockerfile { // If building a Docker image from a file other than "Dockerfile" in the root of your source tree... filename "OtherDockerfile" // "label" and "args" can be used here too. } } // "agent any" and "agent none" stay the same. agent any agent none-
COMPATIBILITY BREAKING SYNTAX CHANGE: The
whensection has been significantly changed, adding newbranch,environment, andexpressionoptions. Theexpressionoption is the equivalent of the previouswhensyntax. -
COMPATIBILITY BREAKING SYNTAX CHANGE: The
propertiessection, previously known asjobProperties, has been renamed again and hopefully for the last time, tooptions. -
COMPATIBILITY BREAKING SYNTAX CHANGE: The
wrapperssection has been removed. Its previous contents, such astimeout,retry, etc, now goes inoptions. -
optionsalso supports Declarative-specific configuration options, such asskipDefaultCheckout. - Internationalization of error messages! Localization contributions welcome!
-
COMPATIBILITY BREAKING SYNTAX CHANGE: The
- Release Date: December 13, 2016
-
Major Changes:
-
COMPATIBILITY BREAKING SYNTAX CHANGE: The
jobPropertiessection has been renamed toproperties. - New Jenkins CLI command for validating/linting Declarative
Jenkinsfiles.
-
COMPATIBILITY BREAKING SYNTAX CHANGE: The
- Release Date: November 17, 2016
-
Major Changes:
-
COMPATIBILITY BREAKING SYNTAX CHANGE: The
notificationssection has been removed, and thepostBuildsection has been renamed topost, for consistency with post-stage actions. Usepostfor what you had been using bothpostBuildandnotifications. - New
dockerfileoption foragentto auto-build a Dockerfile (defaults toROOT_DIR/Dockerfileifdockerfile:trueis used, otherwise uses value ofdockerfile) and run the build in a container based on that image. - New
whensection for an individualstage. Takes a block of arbitrary Pipeline code, runs it, and only executes thestage's contents if that code block returnstrue.
-
COMPATIBILITY BREAKING SYNTAX CHANGE: The
- Release Date: November 2, 2016
-
Major Changes:
-
COMPATIBILITY BREAKING SYNTAX CHANGE: Steps inside a
stagenow need to be in astepsblock. This was needed to support per-stageconfiguration of a number of sections, as described below. - New
postsection supported inside astagefor post-stageactions. This behaves the same as thepostBuildsection, but runs after a singlestage. - New
agentsection supported inside astage. This overrides the top-levelagentconfiguration for the individualstage. - New
toolssection supported inside astage. This allows scopingtoolson a per-stagebasis. - New
environmentsection supported inside astage. This allows scopingenvironmenton a per-stagebasis. - A new configuration option, available both in the Jenkins global configuration and in folder configurations (such as GitHub Multibranch Pipelines), for specifying a default label to use for Docker agents.
- New
wrapperssection at the top-level, for wrapping the entire build in a block-scoped step, such asretryortimeout.
-
COMPATIBILITY BREAKING SYNTAX CHANGE: Steps inside a
- Release Date: October 11, 2016
-
Major Changes:
- New
triggers,jobPropertiesandparameterssections at the top-level. - New syntax for specifying to run on any node -
agent any - Allow function or step calls in the values of environment variables in the
environmentsection.
- New
Documentation
- Getting Started
- Running multiple steps
- Controlling your build environment
- Environment variables
- Reporting test results and storing artifacts
- Notifications
- Deployment and credentials
- Parallelism
- Triggering runs
- Parametrized pipelines
- Pipeline options and log rotation
- Jenkinsfile validation from the CLI
- Advanced pipeline authoring
- Syntax reference
- Version history and changes
Examples