Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8369574

Browse files
authored
Merge pull request#547 from codefresh-io/classic-skip-trigger
Update trigger topic
2 parentsb2e8b7c +e6ae70c commit8369574

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

‎_docs/configure-ci-cd-pipeline/triggers.md‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ toc: true
99
---
1010

1111

12-
To create an effective CI/CD process, it should be possible to triggeraCodefreshpipeline execution not only on code repository events (like`push` or`PR`), but also on any "interesting" CD-related event, coming from some external system.
12+
To create an effective CI/CD process, it should be possible to trigger Codefreshpipelines not only on code repository events (like`push` or`PR`), but also on any "interesting" CD-related event, coming from some external system.
1313

14-
Codefresh not only allows you to define different pipelines on a single project butitalso offers you the capability to trigger them with completely separate mechanisms.
14+
Codefresh not only allows you to define different pipelines on a single project but also offers you the capability to trigger them with completely separate mechanisms. You can even skip triggering a pipeline by including predefined flags in the commit message.
1515

1616

1717
##Codefresh Trigger Types
@@ -95,6 +95,8 @@ For more information see:
9595
You can easily disable a trigger manually if you don't want to be active anymore.
9696
On the triggers tab click the gear icon on the top right (*Open advanced options*).
9797

98+
99+
98100
{% include image.html
99101
lightbox="true"
100102
file="/images/pipeline/triggers/enable-triggers.png"
@@ -108,6 +110,9 @@ max-width="70%"
108110
Then click the toggle switch on each trigger that you want to enable/disable. You can later enable the same trigger again
109111
by clicking the same switch.
110112

113+
>For Git triggers, you can also skip triggering the pipeline without disabling the trigger by adding a predefined string to the commit message. See[Skip triggering pipeline on commit]({{site.baseurl}}/docs/configure-ci-cd-pipeline/triggers/git-triggers/#skip-triggering-pipeline-on-commit).
114+
115+
111116
##What to read next
112117

113118
*[Creating pipelines]({{site.baseurl}}/docs/configure-ci-cd-pipeline/pipelines/)

‎_docs/configure-ci-cd-pipeline/triggers/git-triggers.md‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,23 @@ The Git Trigger is comprised of the following settings:
4646
**Trigger Name* - a freetext trigger name (required).
4747
**Description* - a freetext description (optional).
4848
**Repository* - you can select any repository even something different than the one that is used for the code checkout.
49-
**Commit Checkbox* - if enabled will trigger this pipeline for any commit.
50-
**PR Checkboxes* - various checkboxes for filtering the Pull request event.
49+
**Trigger by* - Commit and PR trigger options. Push Commit when enabled triggers this pipeline for any commit.
50+
The commit checkbox (by default it is enabled) means that this pipeline will run for*any* commit as long as its source branch matches the naming scheme. This includes commits on pull requests.
51+
The PR checkboxes mean that this pipeline will run only on the respective events that happen on a Pull Request. You can select multiple checkboxes to further fine-tune the exact event. If you are interested in all events, select the checkbox*Any Pull Request event*.
5152

52-
Thecommit checkbox (by default it is enabled) means that this pipeline will runfor*any* commit as long as its source branch matches the naming scheme. This includes commits on pull requests.
53+
>Theindividual Pull request checkboxes are available onlyforGitHub repositories.
5354
54-
The PR checkboxes mean that this pipeline will run only on the respective events that happen on a Pull Request. You can select multiple checkboxes to further fine-tune the exact event. If you are interested in all events, select the checkbox*Any Pull Request event*.
55+
##Skip triggering pipeline on commit
56+
The default behavior triggers the pipeline on a commit action.
57+
Override the default behavior by adding any one of the predefined strings anywhere in the commit message.
5558

56-
>The individual Pull request checkboxes are available only for GitHub repositories.
59+
>Remember to include the opening and closing parentheses when adding the strings.
60+
61+
*`[skip ci]`
62+
*`[ci skip]`
63+
*`[no ci]`
64+
*`[skip codefresh]`
65+
*`[codefresh skip]`
5766

5867
##Configure Filter Settings
5968

@@ -71,6 +80,7 @@ max-width="50%"
7180
**Pull Request Target* branch - this is a regular expression and will trigger only when a Pull request is created against any branch that matches it.
7281
**Modified Files* - allows you to constrain the build and trigger it only if the modified files from the commit match this[glob expression](https://en.wikipedia.org/wiki/Glob_(programming)).
7382

83+
7484
###Pull Request Target Branch and Branch
7585

7686
The Pull Request Target Branch field allows you to trigger this pipeline only when the target of a Pull Request (i.e. where the pr is going to be merged at) matches the

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp