Unable to download artifacts via API in a branch with a new gitlab-ci.yml file

,

I’m following this API - Jobs API | GitLab - and noticing some strange behaviour.

The scenario is the following:

  • I am in the process of revamping my build and release pipeline, therefore, compared to my revamp branch, my master branch has completely different job & stage names.

Here is what I’m observing:

  • If I use curl to fetch the following URL (i.e. old job name which is still present in master branch), it works – GET /api/v4/projects/:id/jobs/artifacts/master/download?job=old_job_name
  • However, if I try to fetch artifacts from the revamp branch using the new job names, it always results in a 404 - GET /api/v4/projects/:id/jobs/artifacts/revamp/download?job=new_job_name

Is this expected behaviour? Or is this a bug?

How do I test that my new pipelines are working before I merge them to master? Kinda stuck here.

4 Likes