Skip to content

List failed containers at aborted buildΒ #14

@solsson

Description

@solsson

We currently echo that we exit 1, but not why. Current code has no list of failing containers, just a count.

We cluld use our current docker ps filter with an added exited=0 to get all non-failing containers, and the failing ones would be test_containers that are not in that list.

Or to get failing directly we could use inspect with some template magic like docker inspect -f '{{if ne 0.0 .State.ExitCode }}{{.Name}} {{.State.ExitCode}}{{ end }}' $(docker ps -aq)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions