Skip to content

Commit

Permalink
Correct and refine the document of task debugging
Browse files Browse the repository at this point in the history
- Fix the invalid link for `Debugging`
- Add  approach to `pause` task for debugging
  • Loading branch information
vincent-pli authored and tekton-robot committed Oct 28, 2019
1 parent 96d79bc commit 1921344
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ Except as otherwise noted, the content of this page is licensed under the
and code samples are licensed under the
[Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).

## Debugging a Task
## Debugging

In software, we do things not because they are easy, but because we think they will be.
Lots of things can go wrong when writing a Task.
Expand Down Expand Up @@ -736,3 +736,14 @@ To see the contents of every file, you can use a similar step:
```

These steps are useful both before and after your Task steps!

### Inspecting the pod

One `task` will map to one `Pod`, to check arbitrary thing in `Pod`, the best way is to login the `pod`, add a step at the position you want to `pause` the task, then checking.

```yaml
- name: pause
image: docker
args: ["sleep", "6000"]
```

0 comments on commit 1921344

Please sign in to comment.