gitlab-ci-discord-webhook icon indicating copy to clipboard operation
gitlab-ci-discord-webhook copied to clipboard

Artifact 404 not found

Open Uber616 opened this issue 1 year ago • 1 comments

Hi!

In my pipeline I have 3 artifacts but the number I have in the link is one higher than the last artifact. for example -/jobs/448/artifacts/download - is 404 not found but -/jobs/447/artifacts/download - is fine. However this is only one of the artifacts I would like to send to discord.

Uber616 avatar Dec 11 '23 14:12 Uber616

artifact url is generated from the job id: https://github.com/DiscordHooks/gitlab-ci-discord-webhook/blob/e8283de0540b328e2cbaccf2c5c823efc4a64c7f/send.sh#L7 make sure you're sending the webhook from the same job in the pipeline where you have your artifacts, otherwise the job id won't match and the url won't work.

iamtraction avatar Dec 14 '23 05:12 iamtraction