Skip to content

Start a task from a taskrun with embedded task #1119

@afrittoli

Description

@afrittoli

Feature request

I would like to be able to re-run a taskrun with embedded task spec.
Today this is not possible:

$ tkn task start --use-taskrun plumbing-yamllint-pr-complete-zkg94
Error: either a Task name or a --filename argument must be supplied

The TaskRun is defined here: https://github.com/tektoncd/plumbing/blob/bde34da7abdec4bd7f63a607d56828b5bdba5833/tekton/resources/ci/github-template.yaml#L26

Use case

This is useful to re-run taskruns in Tekton CI.

UI Example

I see two options:

  • allow for the task name to be missing in the --use-taskrun command
  • implement this as tkn taskrun rerun <taskrun-name>

In either case, fail if there is no embedded spec or the referenced task cannot be found.

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions