Skip to content

Commit

Permalink
Support exporting Tekton pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuGongpu committed Jul 14, 2020
1 parent bb0f6d1 commit a13e15c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions internal/cmdexport/cmdexport.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ func supportedOrchestrators() map[string]orchestrators.Pipeline {
"cloud-build": new(orchestrators.CloudBuild),
"gitlab-ci": new(orchestrators.GitLabCI),
"jenkins": new(orchestrators.Jenkins),
"tekton": new(orchestrators.TektonPipeline),
}
}

Expand Down
4 changes: 2 additions & 2 deletions internal/cmdexport/cmdexport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ var testCases = []TestCase{
{
description: "fails on not providing working orchestrator",
params: []string{"dir"},
err: "--workflow flag is required. It must be one of cloud-build, github-actions, gitlab-ci, jenkins",
err: "--workflow flag is required. It must be one of cloud-build, github-actions, gitlab-ci, jenkins, tekton",
},
{
description: "fails on an unsupported workflow orchestrator",
params: []string{".", "--workflow", "random-orchestrator"},
err: "unsupported orchestrator random-orchestrator. It must be one of cloud-build, github-actions, gitlab-ci, jenkins",
err: "unsupported orchestrator random-orchestrator. It must be one of cloud-build, github-actions, gitlab-ci, jenkins, tekton",
},
{
description: "exports a GitHub Actions pipeline",
Expand Down

0 comments on commit a13e15c

Please sign in to comment.