Working with Pipelines
This document describes how to enable the pipelines engine if you need to trigger workflows from the CircleCI API or auto-cancel workflows. Pipelines are not currently available on self hosted installations of CircleCI Server.
- What are Pipelines?
- Benefits of Using Pipelines
- Implications of Pipelines
- Transitioning to Pipelines
What are Pipelines?
CircleCI Pipelines encompass the full set of workflows you run when triggering work on your projects in CircleCI. Workflows coordinate the jobs defined within your project configuration.
Benefits of Using Pipelines
Pipelines offer the following benefits:
- Use the new API endpoint to trigger a pipeline
- Use pipeline parameters to trigger conditional workflows.
- Access to
version 2.1config, which provides:
Note, it is important to carefully consider the impact of enabling the auto-cancel feature, for example, if you have configured automated deployment jobs on non-default branches.
For more detailed information on pipelines and how you can use their properties in your workflows and jobs, please see the following guides:
Implications of Pipelines
When using pipelines, please note the following:
- If no builds or workflows are defined, you will receive an error.
Transitioning to Pipelines
The following sections outline the process of transitioning to pipelines.
Pipelines with 2.0 Configuration
When using 2.0 configuration in combination with pipelines, CircleCI will inject the
CIRCLE_COMPARE_URL environment variable into all jobs for backwards compatibility. This environment variable is generated in a different way to the version that is available in legacy jobs, and is not always available – it is not injected when there is no meaningful previous revision, for example, on the first push of commits to an empty repository, or when a new branch is created/pushed without any additional commits.
If you have feedback, suggestions, or comments:
- Tweet @circleci with thoughts
- Vote or add to our Ideas board
Refer to the Skipping and Cancelling Builds document for more details.