Having some multiple jobs (not in parallel) and I'm trying to pass artifacts from the first job to the second one.
Here what it's look like:
deploy-build-docker 1/2:
stage: deploy
image: docker:stable
script:
- ...
artifacts:
paths:
- path
deploy-preprod 2/2:
stage: deploy
image: alpine
dependencies: [deploy-build-docker]
script:
- ....
CI can't find dependencies, and give me this error deploy-preprod 2/2 job: undefined dependency: deploy-build-docker
I also tried deploy, deploy-build-docker 1/2 but I still have the same issue.
So how can i do that? Should I must do the build in another stage?