title: GitLab CI: How to continue job even when script fails
body: <p>I have a job in my pipeline that has a script with two very important steps:</p>
  
  <ul>
  <li><code>mvn test</code> to run JUnit tests against my code</li>
  <li><code>junit2html</code> to convert the XML result of the tests to a HTML format (only possible way to see the results as my pipelines aren't done through MRs) that is uploaded to GitLab as an artifact</li>
  <li><code>docker rm</code> to destroy a container created earlier in the pipeline</li>
  </ul>
  
  <p>My problem is that when my tests fail, the script stops immediately at <code>mvn test</code>, so the <code>junit2html</code> step is never reached, meaning the test results are never uploaded in the event of failure, and <code>docker rm</code> is never executed either, so the container remains and messes up subsequent pipelines as a result.</p>
  
  <p>What I want is to be able to <strong>keep a job going till the end</strong> even if the script fails at some point. Basically, the job should still count as failed in GitLab CI / CD, but its entire script should be executed. How can I configure this?</p>