Skip to content

Commit

Permalink
Fix reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
othomann committed Jan 23, 2020
1 parent 391f97a commit e16b6c7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 4 additions & 2 deletions docs/taskruns.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ If multiple `steps` are defined in the `Task` invoked by the `TaskRun`, we will

### Results

If one or more `results` are defined in the `Task` invoked by the `TaskRun`, we will get an new entry
If one or more `results` are defined in the `Task` invoked by the `TaskRun`, we will get a new entry
`Task Results` added to the status.
Here is an example:

Expand All @@ -364,6 +364,8 @@ Status:
```

Results will be printed verbatim; any new lines or other whitespace returned as part of the result will be included in the output.

## Cancelling a TaskRun

In order to cancel a running task (`TaskRun`), you need to update its spec to
Expand Down Expand Up @@ -688,7 +690,7 @@ Note: There are some known issues with the existing implementation of sidecars:
- The configured "nop" image must not provide the command that the
sidecar is expected to run. If it does provide the command then it will
not exit. This will result in the sidecar running forever and the Task
eventually timing out. <https://github.com/tektoncd/pipeline/issues/1347>
eventually timing out. [This bug is being tracked in issue 1347](https://github.com/tektoncd/pipeline/issues/1347)
is the issue where this bug is being tracked.

- `kubectl get pods` will show a TaskRun's Pod as "Completed" if a sidecar
Expand Down
6 changes: 3 additions & 3 deletions docs/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ spec:
- name: current-date-unix-timestamp
description: The current date in unix timestamp format
- name: current-date-human-readable
description: The current date in humand readable format
description: The current date in human readable format
steps:
- name: print-date-unix-timestamp
image: bash:latest
Expand Down Expand Up @@ -539,15 +539,15 @@ is configurable using a flag of the Tekton controller. If the configured "nop"
image contains the command that the sidecar was running before the sidecar
was stopped then the sidecar will actually keep running, causing the TaskRun's
Pod to remain running, and eventually causing the TaskRun to timeout rather
then exit successfully. Issue <https://github.com/tektoncd/pipeline/issues/1347>
then exit successfully. [Issue 1347](https://github.com/tektoncd/pipeline/issues/1347)
has been created to track this bug.

### Variable Substitution

`Tasks` support string replacement using values from:

- [Inputs and Outputs](#input-and-output-substitution)
- [Array params](#variable-substitution-with-parameters-of-type-array)
- [Array params](#variable-substitution-with-parameters-of-type-array)
- [`workspaces`](#variable-substitution-with-workspaces)
- [`volumes`](#variable-substitution-with-volumes)

Expand Down
7 changes: 4 additions & 3 deletions pkg/apis/pipeline/v1alpha1/taskrun_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,14 @@ type TaskRunStatusFields struct {
// All TaskRunStatus stored in RetriesStatus will have no date within the RetriesStatus as is redundant.
// +optional
RetriesStatus []TaskRunStatus `json:"retriesStatus,omitempty"`

// Results from Resources built during the taskRun. currently includes
// the digest of build container images
// optional
// +optional
ResourcesResult []PipelineResourceResult `json:"resourcesResult,omitempty"`

// TaskRunResult from task runs
// optional
// TaskRunResults are the list of results written out by the task's containers
// +optional
TaskRunResults []TaskRunResult `json:"taskResults,omitempty"`

// The list has one entry per sidecar in the manifest. Each entry is
Expand Down

0 comments on commit e16b6c7

Please sign in to comment.