I am trying to bundle a django project into a docker image with apps that are in their own projects. To do this I need to be able to pull the files from the other projects. I can do this with git clone
if the projects are public but would rather keep some of them internal/private. I saw the tag needs:
and figured that would be a cleaner way of doing it but its not working. Below is a section of my YAML to show the needs statements.
needs:
- project: polls
job: pack-it-up
ref: main
artifacts: true
- project: mattfody-portfolio
job: pack-it-up
ref: main
artifacts: true
- project: roll-for-initiative
job: pack-it-up
ref: main
artifacts: true
When I run the pipeline I am getting a dependency issue but all three of those pipelines have run successfully and created the artifacts. All three app pipelines have a job called pack-it-up that just adds all the files into the artifacts.zip and nothing else. All the projects are in the same namespace and group and I tried to specify that in the - project:
tag but it doesn’t work either. Below is the exact error I am getting.
This job could not start because it could not retrieve the needed artifacts.
Learn more about [dependencies](https://docs.gitlab.com/ee/ci/yaml/index.html#dependencies) and [common causes](https://docs.gitlab.com/ee/ci/jobs/job_artifacts_troubleshooting.html#error-message-this-job-could-not-start-because-it-could-not-retrieve-the-needed-artifacts) of this error.
I am on a self managed gitlab EE 16.6.2, free tier.