Show Artifacts Automatically


#1

It is pretty annoying to access the Artifacts collected.
Mine are buried about 6 folders down, so I have to check which container failed, and then clickclickclickclickclickclickclickclick and Finally I can see my Artifacts.
I tried to move the Artifacts to a different place higher up, but then they don’t get collected. I tried in SHH, but when ever a test failed, there was still nothing in the _output folder (the folder the artifacts are in).

The Feature Request I have is, could you please expand the folders if there is anything in the artifact folder, that would make my life a lot easier.

Thanks


#2

I agree this would be great, this other request would be super useful too IMO :slight_smile:


#3

I have solved this with the following code.

in circle.yml

post
    - cd ./move-artifacts-ci.sh:
        parallel: true`

in move-artifacts-ci.sh
`
#!/bin/bash

cd ../_output  # the folder where you testing framework outputs the artifacts files.

HTML_ARTIFACTS=$(find ./ -name "*.html")
PNG_ARTIFACTS=$(find ./ -name "*.png")

if [ -n "$HTML_ARTIFACTS" ]
then
    echo "html artifacts found, copying to $CIRCLE_ARTIFACTS"
    cp $HTML_ARTIFACTS $CIRCLE_ARTIFACTS
fi

if [ -n "$PNG_ARTIFACTS" ]
then
    echo "png artifacts found, copying to $CIRCLE_ARTIFACTS"
    cp $PNG_ARTIFACTS $CIRCLE_ARTIFACTS
fi

#4