I came across an interesting behaviour and I was wondering if this is already known or expected, or is it a bug?
I've created 3 pipelines:
- child (through UI)
- parent (in my git repo, imported by config repo setting)
- parent-mkII (through UI)
I then went into the "child" pipeline setting > Materials > Add Material and in the Upstream Stage drop-down, the only given options was "parent-mkII"
This is not an isolated incident and what prompted me to start investigating was when I brought down gocd server a few times when I used the gocd api to deploy pipelines where the request body config referenced a pipeline that was deployed through the config repo.
The server error message was very similar every time, it was "Error: Pipeline 'from-config-repo' does not exist. It is used from pipeline 'from-api'.". However, it works fine if a pipeline is from the config repo referencing another pipeline from config repo.