Gitlab CI yml Artifacts not getting generated on_failure
I created a CI yml to automate my latex document building, due to some formatting issues in template it always exits with error code but generates pdf. So i added artifacts on_failure but its not showing download after building what could be the reason? The contents of the yml is given below.
image: ubuntu:18.04 .job_pdf: #stage: build script: &build_script - pdflatex -interaction=nonstopmode embed.tex job_pdf: before_script: - apt -y update && export DEBIAN_FRONTEND=noninteractive && apt install -y tzdata && ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && dpkg-reconfigure --frontend noninteractive tzdata && apt -y install texmaker script: *build_script artifacts: when: on_failure - embed.pdf