Hello, You probably already know this. One thing you could do is set up an upstream dependency in the Utility pipeline as App pipeline run-tests stage. However, the drawback is that even the first stage (deploy-to-test) of the Utility pipeline will not get triggered until the run-stage of App pipeline completes. You could use this if you are okay with the automatic trigger of deploy-to-test of Utility pipeline being delayed.
A material dependency can be set up for a pipeline and not a stage. Thanks, Varsha On Wednesday, 23 November 2016 19:34:28 UTC+5:30, [email protected] wrote: > > Hi, I've got project setup on GO-CD. It consists of 2 mercurial > repositories. App and Utility and I need to run tests only for the App. Got > 2 environments - Test and Development. > My current setup is two pipelines - App (stages: deploy-to-test / > run-tests / deploy-to-development) and Utility (stages: deploy-to-test / > deploy-to-development). > I've looked at the documentation and managing dependencies ( > https://docs.go.cd/16.3.0/configuration/managing_dependencies.html) but > it doesn't look like what I imagined. > > What I want to do: > 1) always deploy automatically to Test environment (stages "deploy-to-test > "in both pipelines) - this part works > 2) run tests on App and if it succeeded deploy it to development > environment - this part works also > 3) deploy Utility to development environment only if stage 2 for App > ("run-tests") succeeded and not after stage "deploy-to-test" in Utility > pipeline succeeded -> could otherwise break development environment - *this > part is my problem* > > Is there something as stage dependency and how should I do it? > I was thinking about splitting Utility to 2 pipelines (Test and Dev), so > Test normally deploys to Test, and Dev only starts if both materials from > Mercurial is new and stage "run-tests" from App succeeded... > Can that be done and is it how it *should* be done? > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
