title: Different artifacts when job succeeded and failed with GitLab CI
body: <p>Need to upload artifact <code>binary.bin</code> when job succeeded and <code>build_trace.log</code> when failed.</p>
  
  <p>Looking on <a href="https://docs.gitlab.com/ee/ci/yaml/README.html#artifactswhen" rel="noreferrer">artifacts:when</a>
  I don't see such ability. </p>
  
  <h3>Is there some tricky hack?</h3>
  
  <p>I would like to see something like</p>
  
  <pre><code>job:
    artifacts:
      - name: failed_trace_log
        when: on_failure
        paths:
        - build_trace.log
      - name: succeed
        when: on_success
        paths:
        - binary.bin
  </code></pre>
  
  <p>Current workaround is:</p>
  
  <pre><code>job:
    artifacts:
      when: always
      paths:
      - build_trace.log
      - binary.bin
  </code></pre>