You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/configure-ci-cd-pipeline/triggers.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ toc: true
9
9
---
10
10
11
11
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.
13
13
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.
15
15
16
16
17
17
##Codefresh Trigger Types
@@ -95,6 +95,8 @@ For more information see:
95
95
You can easily disable a trigger manually if you don't want to be active anymore.
96
96
On the triggers tab click the gear icon on the top right (*Open advanced options*).
Then click the toggle switch on each trigger that you want to enable/disable. You can later enable the same trigger again
109
111
by clicking the same switch.
110
112
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).
Copy file name to clipboardExpand all lines: _docs/configure-ci-cd-pipeline/triggers/git-triggers.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,14 +46,23 @@ The Git Trigger is comprised of the following settings:
46
46
**Trigger Name* - a freetext trigger name (required).
47
47
**Description* - a freetext description (optional).
48
48
**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*.
51
52
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.
53
54
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.
55
58
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]`
57
66
58
67
##Configure Filter Settings
59
68
@@ -71,6 +80,7 @@ max-width="50%"
71
80
**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.
72
81
**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)).
73
82
83
+
74
84
###Pull Request Target Branch and Branch
75
85
76
86
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