Hi Kenny, 2 cents based on my understanding:
The pipeline isn't picking up the latest version of the Acceptance-Test-Suite repo because "Poll for new changes" is not ticked. With that not ticked, I believe the only time GoCD will actually fetch new changes from Acceptance-Test-Suite repo is when that last pipeline is triggered manually. If the pipeline runs automatically after the Deploy pipeline has run, it won't fetch new changes from the Acceptance-Test-Suite repo. Conceptually <https://docs.go.cd/16.4.0/introduction/concepts_in_go.html#materials>, a material is a cause for a pipeline to run. What you want is for the pipeline to be triggered (caused) by a deploy (previous pipeline), then to fetch a new version of Acceptance-Test-Suite before the test is run. One way I see you could achieve this is by *not* setting the Acceptance-Test-Suite repo as a material, but instead, setting up a task to do the git pull from master branch before you run the test. Tania On Wednesday, July 27, 2016 at 1:15:41 PM UTC-4, Kenny Reid wrote: > > Hi, > > We have a very simple, three pipeline flow along the lines of:- > > > Build Artifact Pipeline -> Deploy Artifact to Test Machine Pipeline > -> Run Acceptance-Test-Suite Pipeline on test machine > > The last pipeline has two materials:- > > - The "Deploy Artifact to Test Machine Pipeline" which triggers it > - Acceptance-Test-Suite material (a separate project on git) > > > We dont want the Acceptance-Test-Suite pipeline to run when a commit is > made to the Acceptance-Test-Suite material, just when the "Deploy > Artifact to Test Machine Pipeline" runs, > so we do NOT have the "Poll for new changes" button ticked. We also have > the branch set for this material to "master". > > What is confusing us, is that we are not necessarily picking up the latest > version of the Acceptance-Test-Suite from the master branch when this > pipeline runs. We may have > a few commits happening during the day to the Acceptance-Test-Suite, but > intuitively, I would just want the latest one to be checked out when the > pipeline runs, and thats not happening. > > This is not the desired effect. Have I misunderstood something? Is there a > way to achieve what we want (namely that we always pick up the latest > version of the > Acceptance-Test-Suite material from git)? > > Apologies if this has been asked before. > > Many thanks in advance, > > Kenny > > > > > -- 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.
