'I am trying to access a gitlab yaml from another project within same group in my main project

Code:

include:
  - project: 'testing-parent-pipeline/Testing-child-push'

    file: 'script/test.yml'

I am getting this error

Project testing-parent-pipeline/Testing-child-push not found or access denied! Make sure any includes in the pipeline configuration are correctly defined.



Solution 1:[1]

Please try to check what is the absolute path of your project. To make sure the path is correct please check under

settings -> general -> advanced

When you expand advanced there is a section called change path that is where you will see the real path. Use that as the correct path like this

include:
  - project: 'testing-parent-pipeline/Testing-child-push'
    ref: master
    file: 
      -'script/test.yml'

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 DevOps_Engg