Skip to content

Commit 6e28f82

Browse files
authored
Merge pull request #91899 from mramendi/RHDEVDOCS-6418
RHDEVDOCS 6418 fix example for custom parameter filtering
2 parents 8f79a3a + 7d8fa5d commit 6e28f82

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

modules/op-custom-parameter-expansion.adoc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can use custom parameters in the following scenarios:
1414
1515
[NOTE]
1616
====
17-
Use the custom parameter expansion feature only when you cannot use the Tekton `PipelineRun` parameters because Tekton parameters are defined in a `Pipeline` resource and customized alongside it inside a Git repository. However, custom parameters are defined and customized where the `Repository` CR is located. So, you cannot manage your CI/CD pipeline from a single point.
17+
Use the custom parameter expansion feature only when you cannot use the Tekton `PipelineRun` parameters because Tekton parameters are defined in a `Pipeline` resource and customized alongside it inside a Git repository. However, custom parameters are defined and customized where the `Repository` CR is located. So, you cannot manage your CI/CD pipeline from a single point.
1818
====
1919

2020
The following example shows a custom parameter named `company` in the `Repository` CR:
@@ -31,7 +31,7 @@ spec:
3131

3232
The value `ABC Company` replaces the parameter name `company` in your pipeline run and in the remotely fetched tasks.
3333

34-
You can also retrieve the value for a custom parameter from a Kubernetes secret, as shown in the following example:
34+
You can also retrieve the value for a custom parameter from a Kubernetes secret, as shown in the following example:
3535

3636
[source,yaml]
3737
----
@@ -60,10 +60,7 @@ spec:
6060
params:
6161
- name: company
6262
value: "ABC Company"
63-
filter:
64-
- name: event
65-
value: |
66-
pac.event_type == "pull_request"
63+
filter: pac.event_type == "pull_request"
6764
...
6865
----
6966

0 commit comments

Comments
 (0)