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/en/triggers/concepts/triggertemplate_concept.mdx
+57Lines changed: 57 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,8 @@ TriggerTemplates are essential in the following scenarios:
70
70
71
71
5.**Parameterized Testing**: Create test pipelines with different parameters based on the type of event.
72
72
73
+
6.**As Runtime Configuration Templates**: Provide standardized runtime configurations (such as parameters, workspaces, security contexts, etc.) for repeatedly executed Pipelines. Users can select matching templates through the frontend UI to quickly generate pipelinerun instances that meet scenario requirements.
74
+
73
75
## Constraints and Limitations
74
76
75
77
- Parameters in TriggerTemplates can only be string values
@@ -140,6 +142,28 @@ Each created resource receives labels to track its origin:
Optional, marks the template as the default configuration for the pipeline. If multiple default templates exist, the one with the latest creation timestamp will be selected.
160
+
161
+
2. Resource Template Conventions
162
+
163
+
- Only one `PipelineRun` resource can be defined in `spec.resourcetemplates`.
164
+
- Must include `pipelineRef` to reference the target pipeline.
165
+
- Supports all runtime configuration fields of `PipelineRun`, such as `params`, `workspaces`, `podTemplate`, etc.
0 commit comments