Creating multi-project pipelines from .gitlab-ci.yml

Hi All,

Version: GitLab Enterprise Edition 13.2.0

I have created 2 projects test and test1.
I want to trigger test project from test1 pipeline.
Below is the yml file in test1 project.
build stage is working fine but trigger bridge job is pending and it is not progressing at all.
Please advise how to solve this issue.

stages:

  • build
  • deploy
    build:
    stage: build
    image: alpine
    script:
    - cd /var/
    - ls -lrt
    - pwd

deploy website:
stage: deploy
trigger:
project: https://gitlab.com/x/test/
strategy: depend

Got the solution. Below is the yml file.
We should not give entire url(project: https://gitlab.com/x/test/).

stages:

  • build
  • deploy

build:
stage: build
image: alpine
script:
- cd /var/
- ls -lrt
- pwd

staging:
stage: deploy
trigger:
strategy: depend
project: x/test
branch: master

@sanjaykumarmp - Thank you for coming back and sharing the solution you found :blush: