Skip to content

Commit ce9caa4

Browse files
committed
chore(runner): First cut on Tekton pipeline detection
Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
1 parent 38d94d9 commit ce9caa4

22 files changed

+847
-340
lines changed

app/cli/pkg/action/workflow_run_list.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ func humanizedRunnerType(in v1.CraftingSchema_Runner_RunnerType) string {
193193
*v1.CraftingSchema_Runner_CIRCLECI_BUILD.Enum(): "CircleCI Build",
194194
*v1.CraftingSchema_Runner_DAGGER_PIPELINE.Enum(): "Dagger Pipeline",
195195
*v1.CraftingSchema_Runner_TEAMCITY_PIPELINE.Enum(): "TeamCity Pipeline",
196+
*v1.CraftingSchema_Runner_TEKTON_PIPELINE.Enum(): "Tekton Pipeline",
196197
}
197198

198199
hrt, ok := mapping[in]

app/cli/pkg/action/workflow_run_list_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ func (s *workflowRunListSuite) TestHumanizedRunnerType() {
6464
name: "teamcity runner",
6565
testInput: v1.CraftingSchema_Runner_TEAMCITY_PIPELINE,
6666
expectedOutput: "TeamCity Pipeline",
67+
}, {
68+
name: "tekton runner",
69+
testInput: v1.CraftingSchema_Runner_TEKTON_PIPELINE,
70+
expectedOutput: "Tekton Pipeline",
6771
}, {
6872
name: "unknown runner",
6973
testInput: -34,

app/controlplane/api/gen/frontend/workflowcontract/v1/crafting_schema.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/attestation.v1.Attestation.jsonschema.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/attestation.v1.Attestation.schema.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/attestation.v1.RunnerEnvironment.jsonschema.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/attestation.v1.RunnerEnvironment.schema.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/controlplane.v1.AttestationServiceInitRequest.jsonschema.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/controlplane.v1.AttestationServiceInitRequest.schema.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/controlplane/api/gen/jsonschema/controlplane.v1.MetricsRunnerCount.jsonschema.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)