0

I have a multi-project pipeline. Project B depends on Project A. Inside Project B pipeline I am able to get my desired artifacts. Problem is that I am in the Runner's directory, The root path is CI_PROJECT_DIR, something like buildMachine/builds/build#/0/groupname/project.

I'm not sure what the path to the actually repository should be but it's not this. I need to take these files and add them to the gitlab repository..any advice?

Kyle
  • 695
  • 6
  • 24
  • You can access the files from Project B and you want to push them in Project A ? – Nicolas Pepinster Dec 20 '19 at 07:24
  • Yes, I found a solution using a variation of the solution to this question.. https://stackoverflow.com/questions/51465858/how-do-you-push-to-a-gitlab-repo-using-a-gitlab-ci-job – Kyle Dec 20 '19 at 18:58
  • 3
    Does this answer your question? [How do you push to a gitlab repo using a gitlab-ci job?](https://stackoverflow.com/questions/51465858/how-do-you-push-to-a-gitlab-repo-using-a-gitlab-ci-job) – Arty-chan Dec 21 '19 at 21:06
  • you linked the same question – Kyle Dec 27 '19 at 22:56

1 Answers1

0

I was able to commit the artifacts to my Project B using a variation of this answers...

How do you push to a gitlab repo using a gitlab-ci job?

Kyle
  • 695
  • 6
  • 24