#How can I get files from failed container step? (test cases included)

1 messages · Page 1 of 1 (latest)

valid spruce
#

I'm running gradle tests, and when they fail, I want to gather the generated junit test reports. I cannot do this because when dagger exits 0, the resulting container does not have the files I desire.

Each test simulates a successful test run, and a failed test run, and their corresponding outputs.

In both cases, I expect to be able to retrieve files - even if the script fails.

How can I get test files from failed tests?

Here's an example repo to reproduce the issue I'm seeing.

https://github.com/stobias123/dagger_examples/tree/main/export_failure

GitHub

Contribute to stobias123/dagger_examples development by creating an account on GitHub.

valid spruce
#

How can I get files from failed container step? (test cases included)

autumn laurel
valid spruce
#

ah yeah that looks like exactly what I should be doing

#

I'd gotten used to calling sync now, I'll give it a try

#

oh wait so it's not a dagger thing it's just bash foo, I misread it...

Seems clunky ngl, but I can do it I guess