Uploading artifact on failure #946
-
Hi there, Is there a way to include something like: build_and_test_task:
binaries_artifacts:
on_failure: true
path: "screenshots/*"
format: zip Just looking for some opportunities to upload some screenshots results from the cirrus runner. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Hey @evertonlperes, you can do it already with execution behaviour feature. Just wrap your on_failure:
binaries_artifacts:
path: "screenshots/*"
format: zip |
Beta Was this translation helpful? Give feedback.
-
Closing this by: cirruslabs/cirrus-ci-agent#197 |
Beta Was this translation helpful? Give feedback.
-
It did the trick moving the artifacts around: always: # or on_failure:
custom_script: |
cp -R /home/ranchertest/e2e/reports/ .
logs_artifacts:
path: "/reports/*" On my scenario, I need to run the E2E tests as a non-root user due our project requirements. That's the reason to move the files created as a |
Beta Was this translation helpful? Give feedback.
Closing this by: cirruslabs/cirrus-ci-agent#197