I can use a badge svg file from an job artifact by referencing the download link of said image, but how do I get the latest Job result in that context? There does not seem to be a variable for that.
(I do not have pages available in the moment)
EDIT: Never mind, you “just” need the magic link: yourGitlabHost%{project_path}/-/jobs/artifacts/%{default_branch}/raw/pathToBadge/badgeName.svg?job=NameOfTheJobProducingTheBadge
In which GitLab version is this supposed to work? In my 15.9 I get a 404 although the file exists.
Even trying through API as documented at Job Artifacts API | GitLab I get the same response.
Are SVG files subject to some restriction for security reasons (XSS) maybe?