Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct and refine the document of task debugging #1487

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]

```