Hi Folks,
We have a strange scenario when trying to leverage auto trigger (Trigger on completion of previous stage)
Scenario 1: We have Production deploy pipeline with 2 upstread dependences that need to be satisfied to trigger the pipeline (UAT Pipeline Success and Common Pipeline Success)
When UAT is triggered by changes and is successful, the pipeline is triggered even though Common has not been triggered in production since a week ago. When we look at the VSM, it shows the Common pipeline as being successful (green) but that success was from the previous weel. GoCD, or at least how we have it set up, doesnt incorporate the latest date or commit. Please see screenshot. This inadvertently triggered a production deploy which we did not want to happen.
Scenario 2: To avoid Scenario 1 from happening again, we removed the UAT pipeline as an upstread material requirement which, we thought, seemed to trigger the production pipeline. Now the only upsteam requirements is the Common pipeline being required successful. Now the prod pipeline was triggered because changes were commited to our main branch, even though Common prod pipeline has not been triggered for over a week, although, in the VSM, GoCD still shows common as successful (green).
NOTE that each pipeline has its own pluggable SCM with its own specific path criteria.
I am looking for a way to have GoCD, recognize that although an upstream pipeline was successful in the past (> 1 week) it should not trigger a downstream pipeline if the production pipelines have not been triggered or successful.
I hope that makes sense. Perhaps we have configured it incorrectly however weve had production deploys happen when we didnt want them to.
The first screenshot shows that we manually triggered the common pipeline last week.
The second screenshot shows that the Audit-prod pipeline was triggered by changes the following week, however the upstream pipeline (Common-prod) was not triggered by those changes.
Also imagine that UAT was also an upstream pipeline dependency (Marked in both screenshots which we manually triggered but still triggered prod automatically because it viewed the Common pipeline as successful, even though it was from last weeks build.
Im thinking the issue is due to each pipeline having its own unique pluggable scm with their own trigger path but yet are still all are pointing to our main branch.
Any help determining the root cause and how to properly set this up so its triggered correctly.
