Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions schemas/_defs/artifact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$id": "cdevents/_defs/artifact",
"term": "Artifact",
"definition": "A versioned, immutable output of a build or packaging process that represents a deliverable unit intended for consumption by downstream systems.",
"notes": [],
"examples": [
"A container image produced by a CI pipeline",
"A compiled binary packaged for release",
"A versioned deployment bundle generated from source"
],
"out_of_scope": [
"Source code repositories or branches",
"Intermediate or temporary build outputs",
"Logs, metrics, or diagnostic data",
"Configuration files not intended for distribution",
"Runtime state or dynamically generated data"
]
}

19 changes: 19 additions & 0 deletions schemas/_defs/pipelinerun.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$id": "cdevents/_defs/pipelinerun",
"term": "PipelineRun",
"definition": "A PipelineRun is a concrete invocation of a pipeline definition, representing one complete attempt to execute that pipeline’s workflow from start to termination.",
"notes": [
"A PipelineRun is not a pipeline definition",
"A PipelineRun may fail, succeed, or be aborted"
],
"examples": [
"Tekton PipelineRun",
"GitHub Actions workflow run",
"Spinnaker pipeline execution"
],
"out_of_scope": [
"Pipeline templates",
"Reusable pipeline graphs"
]
}

22 changes: 22 additions & 0 deletions schemas/_defs/started.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$id": "cdevents/_defs/started",
"term": "Started",
"definition": "Indicates that execution of an entity has begun and that the system has committed to performing the associated work.",
"notes": [
"A started event does not imply successful execution or completion.",
"The associated execution may still fail, be canceled, or terminate early."
],
"examples": [
"A pipeline run entering its first execution step",
"A task beginning execution on a worker",
"A deployment process initiating rollout"
],
"out_of_scope": [
"Scheduling or queuing of work",
"Validation or pre-flight checks",
"Completion of execution",
"Failure or cancellation outcomes",
"Progress or intermediate execution states"
]
}

6 changes: 5 additions & 1 deletion schemas/pipelinerunstarted.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://cdevents.dev/0.6.0-draft/schema/pipelinerun-started-event",
"x-cdevents-semantics": {
"subject": "cdevents/_defs/pipelinerun",
"predicate": "cdevents/_defs/started"
},
"properties": {
"context": {
"properties": {
Expand Down Expand Up @@ -108,4 +112,4 @@
"context",
"subject"
]
}
}