I’m trying to trigger a pipeline from another project as described in docs but it fails with “Downstream project could not be found”.
When I make the job “manual” it works as expected but trying to trigger the job automatically “on_success” leads to the error message.
Here is the job definition:
variables:
CURRENT_VERSION: 123
.template__only_release:
rules:
- if: !reference [.release_bumpversion_rules]
when: on_success
.template__only_release_manual:
rules:
- if: !reference [.release_bumpversion_rules]
allow_failure: true
when: manual
upgrade-dev:
stage: deploy
extends: .template__only_release_manual # this works but not with .template__only_release
needs:
- publish_docker_image
variables:
UPGRADE: "true"
AUTOMERGE: "true"
TARGET_VERSION: ${CURRENT_VERSION}
CURRENT_COMMIT: ${CI_COMMIT_SHORT_SHA}
TRIGGERED_BY: ${GITLAB_USER_LOGIN}
trigger:
project: my_group/devops/saas-deployment
branch: main
strategy: depend
So the moment I switch to .template__only_release
, It no longer works.