The syntax for this will be:
job: artifacts: when: on_failure
cc @grzesiek @tmaczukin
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/4034