Skip to content

Commit 59767b9

Browse files
committed
move benefits content to a snippet
1 parent ae5242c commit 59767b9

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

jekyll/_cci2/api-intro.md

+1-8
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,7 @@ The CircleCI API v2 enables users to be authenticated by simply sending your API
5252

5353
The CircleCI API v2 includes the use of pipelines to assist you in triggering workflows from the CircleCI API. By enabling pipelines, you can take advantage of specific API use cases such as:
5454

55-
- Use pipeline parameters to trigger [conditional workflows]({{ site.baseurl }}/2.0/pipeline-variables/#conditional-workflows).
56-
- Include [resuable config]({{ site.baseurl }}/2.0/reusing-config/) elements, including executors, commands, jobs, as well as packaged resuable config, known as [orbs](https://circleci.com/orbs/).
57-
- You can now enable auto-cancel, within **Advanced Settings**, to abort workflows when new builds are triggered on non-default branches.
58-
59-
For more detailed information on pipelines and how you can use them in your workflows and jobs, please see the following guides:
60-
* [Enabling and Transitioning to Pipelines]({{ site.baseurl }}/2.0/build-processing/)
61-
* [Viewing Pipelines in the UI]({{ site.baseurl }}/2.0/pipelines/#overview)
62-
* [Pipeline Variables]({{ site.baseurl }}/2.0/pipeline-variables/#section=configuration)
55+
{% include snippets/pipelines-benefits.adoc %}
6356

6457
#### Triggering a Pipeline with Parameters Example
6558

jekyll/_cci2/build-processing.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ Most projects will have Pipelines enabled by default. Verify the project pipelin
2121

2222
The pipelines feature enables use of the new [API endpoint to trigger builds with workflows](https://circleci.com/docs/api/#trigger-a-new-build-by-project-preview) and the following use cases:
2323

24-
- Use pipeline parameters to trigger [conditional workflows]({{ site.baseurl }}/2.0/pipeline-variables/#conditional-workflows).
25-
- Include [resuable config]({{ site.baseurl }}/2.0/reusing-config/) elements, including executors, commands, jobs, as well as packaged resuable config, known as [orbs](https://circleci.com/orbs/).
26-
- You can now enable auto-cancel, within **Advanced Settings**, to abort workflows when new builds are triggered on non-default branches.
27-
28-
**Notes:** 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.
24+
{% include snippets/pipelines-benefits.adoc %}
2925

3026
## Troubleshooting
3127

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
- Use pipeline parameters to trigger [conditional workflows]({{ site.baseurl }}/2.0/pipeline-variables/#conditional-workflows).
2+
- Include [resuable config]({{ site.baseurl }}/2.0/reusing-config/) elements, including executors, commands, jobs, as well as packaged resuable config, known as [orbs](https://circleci.com/orbs/).
3+
- You can now enable auto-cancel, within **Advanced Settings**, to abort workflows when new builds are triggered on non-default branches.
4+
5+
**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.
6+
7+
For more detailed information on pipelines and how you can use their properties in your workflows and jobs, please see the following guides:
8+
* [Transitioning to Pipelines]({{ site.baseurl }}/2.0/build-processing/#transitioning-to-pipelines)
9+
* [Viewing Pipelines in the UI]({{ site.baseurl }}/2.0/pipelines/#overview)
10+
* [Pipeline Variables]({{ site.baseurl }}/2.0/pipeline-variables/#section=configuration)

0 commit comments

Comments
 (0)